Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Hello-
I'm having a problem once I upload a file and I need to copy it to a new
directory using php. The error message I keep getting is this:
Warning: Unable to create
'/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in
/php/news/news.class.php on line 227
My question is
Check the permissions on both the directory and the file, so that they are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to
make of the empty include path in the error message.
Kirk
> I've tried including just a file that was in the /usr/lib/php
> directory.
> No lu
Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Hi Guys,
Is there any way I can create a zip file from files? (filenames and their
paths will be specified in an array) Any help would be very much
appreciated!
TIA,
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
PHP Boot Camp is an intensive 2-day PHP programming hands-on seminars
to teach you everything you need to know to build a dynamic web site
using PHP.
In this seminar, you will literally build a dynamic web-site from
scratch which utilizes PHP, MySQL, SMTP, HTTP GET and POST, GD,
Cookies, Sess
hey, maybe if you post this 10 more times, someone will answer
it...
This is a good list, if someone has an answer, you will probably get it. You
don't need to post the same question multiple times. All that does is annoy
the hell out of people.
- Original Message -
From: "Wee Chua" <
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page that has:
At 03:49 PM 9/20/2001 -0400, Wee Chua wrote:
>Hi all
I only know of two ways to do page redirects with PHP: the header() function
and a META refresh tag. I suppose you could also use PHP to dynamically
generate the javascript code you included in your email. Good luck!
Kirk
> - Original Message -
> From: "Wee Chua" <[EMAIL PROTECTED]>
> T
> Richard Lynch is highly regarded as the best PHP Instructor
> world-wide
And this is measured how?
:D
--
Richard Heyes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list adminis
Raphael,
check fillowing link:
http://www.php.net/manual/en/ref.zip.php
Php has built-in zip functions.
Alex
- Original Message -
From: "Raphael Pirker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:23 PM
Subject: [PHP] creating ZIP files
> Hi Guys
Checked that. Plenty of permissions.
Anyone else have any idea?
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...
Check the permissions on both the directory and the
Okay... This is odd. Despite the fact that
'print_r(ini_get("include_path"));' returns the right include_path, I
just checked the php.ini file, and lo and behold, there is no include
path set. So... Have I just discovered a bug?
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTE
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page html
that has:
onLoad="javascript:history.go(-2);" in the body tag
I think maybe you should look at this from a different angle.
You say you want to go to the previous page because you
don't want to lose any information on the previous page.
Do you mean, for example form fields that are filled out on
previous pages? You can pass information between pages.
This
If HE is the one who did these lame-ass sites:
http://www.PHPBootCamp.com
http://www.l-i-e.com
I don't want to learn anything from him, that's for sure
> > > --
> > > WARNING [EMAIL PROTECTED] email address is an endangered species
> > > Use [EMAIL PROTECTED] instead
> >
> > Richard Lynch is h
> If HE is the one who did these lame-ass sites:
>
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Ay yi yi!
Listen here, Flame Boi, why don't you just keep your comments to yourself,
h?
Unless I'm mistaken, there aren't many
this link refers to a function READING zip files, not actually creating
one...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Not to mention, it's a PHP bootcamp, not an HTML Web Design bootcamp. What
do the aesthetics of the site have to do with the backend?
I've recieved many excellent tips from richard in the past. I'm sure he is
qualified to teach PHP.
- Original Message -
From: "Erik H. Mathy" <[EMAIL PROT
On Thu, 20 Sep 2001 15:49:25 -0400, Wee Chua wrote:
>Hi all,
>I know how to forward a page with PHP, but what if the page I want
to
>forward is the previous page or last page. In javascript, the code
>is like
>javascript:historygo(-1). The reason why I want to go back to
>previous page
>is because
I'm trying to use the system() function to execute a shell command, but the
shell command that needs to be executed, needs to be executed as a different
user (not the default 'nobody' user). Can somebody show me what I need to
do, to accomplish this.
Thanks
-Adam
(I'm sorry if this is not getting posted in the correct
place, but I'm not sure who/where to turn to...)
I'm attempting to upgrade my SuSE Linux 7.2 (2.4.x) server
to the new version of PHP 4.0.6, Apache 1.3.20, and the newest MySql...
(From PHP 4.0.4pl1/Apache 1.3.19)
Here are the (updated) ins
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Good designers make lousy programmers, and vice versa. And fwiw, my post was
supposed to be good natured and tongue-in-cheek. Richard Lynch helps, has
helped and will probably continue
How to close persistance connection to MySQL server ?
Luboslav Gabal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
On 9/20/2001 5:56 PM this was written:
> How to close persistance connection to MySQL server ?
You don't, they stay open for a certain amount of time, not sure how long..
--
Thomas Deliduka
IT Manager
-
New Eve Media
The Solution To Your Internet Angst
http://www.n
Is there a way to determine the file type of a file uploaded via an form?
I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
interested in determining if a file is a valid PDF or valid Word document.
Thanks for the help.
Ezra
--
PHP General Mailing List (http://www.php
Is there a way to determine the file type of a file uploaded via an form?
I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
interested in determining if a file is a valid PDF or valid Word document.
Thanks for the help.
Ezra
--
PHP General Mailing List (http://www.ph
On Thu, 20 Sep 2001, Ezra Freedman wrote:
> Is there a way to determine the file type of a file uploaded via an TYPE="file"> form?
> I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
> interested in determining if a file is a valid PDF or valid Word document.
if you are
read: http://www.php.net/manual/en/features.file-upload.php
You either want:
$userfile_type
or
$HTTP_POST_FILES['userfile']['type']
-philip
On Thu, 20 Sep 2001, Ezra Freedman wrote:
> Is there a way to determine the file type of a file uploaded via an TYPE="file"> form?
> I know that geti
Hi,
I trying to cut the last 4 char of a string but sometimes its cut 3 sometime
4 char
$pic1=$amyrow["picture"];
$pic2 = substr("$pic1", 0, -4);
Actually I have some pictures where I need to cut off the extensions...
amamm.jpg
33.jpg
321.gif
to
amamm
33
321
Is any other way than substr
NoWayMan wrote:
> If HE is the one who did these lame-ass sites:
>
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Listen jackass, Richard is a PHP Programmer, not a Web Designer. Next
time you feel like flaming back, do me a
OOOH, touched a nerve...
I'm sorry to have blasphemed.
I was just making an observation that the sites he produced were
pretty lame. I was just suggesting that even if he was such a hot-shot
PHP guru, he'd want to have some sort of "niceness" about the sites
he produces.
I am, honestly, just be
Do you have enough space in the partition?
Joseph
CollegeSucks.com - See PHP in ACTION!
-Original Message-
(I'm sorry if this is not getting posted in the correct
place, but I'm not sure who/where to turn to...)
I'm attempting to upgrade my SuSE Linux 7.2 (2.4.x) server
to the new ve
Hello,
Below you will see some html code, my question is how can I parse everything
between the tags
and and put the results in an array ?
i know i should use preg_match_all but can't figure it out.
Thanks !
this is the html needed to be parsend:
Motor
Racing's Strangest Races TIMBAL
Hello, regarding old email from [EMAIL PROTECTED] about mail
attachements
From: py" <[EMAIL PROTECTED]> 21/05/01 08:25
Subject: Re: [PHP] sending attachements with mail
To: "Tolga \"thorr\" Orhon" <[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Here is a nice class that handles e-mail attac
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
-Jason Garber
www.deltacron.com
At 08:56 PM 9/20/2001 -0700, you wrote:
>ey guys.. how do i check if the pos
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
BTW... If you already have a connection to MySQL, you could send simple
queries to it to take advantage of its
Here is a question, just for fun:
What is the biggest function (In terms of line count) you have ever written?
I just finished one that is 100 lines long. That is by far my biggest It's a
script initialization function that sets up database connectivity, creates all tables
necessary for my
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 8:32 PM
To: PHP Users
Subject: [PHP] Just for fun:
Here is a question, just for fun:
What is the biggest function (In terms of line count) you have ever
written?
I just finished one tha
One of my largest is a function of a complete session management class that
I wrote - 150 lines. The class is ~ 450 lines.
When you find yourself writing HUGE functions, it may be better to split it
into smaller, more clearly defined functions or classes and do it that way...
-Jason Garber
Le
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a string but sometimes its cut 3 sometime
>4 char
>
>$pic1
Another PHP problem has kept me up all night, scouring through my database
books and trying everything I could think of. I am still new to the MySQL
and PHP field, but never the lass I will not give up.
$cat is a variable that is passed to the query from the previous page. The
SELECT statement
On Fri, 21 Sep 2001 02:34, Jason Bell wrote:
> Thanks lance and David for the reply. :)
>
> Yes, I suspected as much, *BUT* let me explain what I am trying to do:
>
> I have a script I am writing that uses a MySQL backend. I'm including
> an initial configuration interface via the webbrowser. Dur
Hi All,
Anyone here know how can estimate performance of a script?
For example, to use template will definitely have much benefit
for both maintenance and development, but it will also cause
more IO cost, so I guess it may have negtive effect on performance.
Anyone here can please say somethi
>When you find yourself writing HUGE functions, it may be better to split it
>into smaller, more clearly defined functions or classes and do it that
way...
I totally agree i tend to split my class functions into user (public) and
private (helper) functions which does tend to keep all the functio
On Fri, 21 Sep 2001 00:57, Cory K. Walker wrote:
> The PHP manual does not document the operators
>
> ()
> ->
>
> What is the relative precedence and associativity of each? I've looked
> in the archives, and I've found some butter, more complete precedence
> tables, but they appear to be outdated
hi andras-
consider the strstr() and strrstr() functions :
$str = 'abcabc';
print strpos ($str,'b'); // 1
print strrpos($str,'b'); // 4
these positions can be used with other functions, such as substr() :
$str = 'abc.png';
print strpos($str,'.');// 3
print
On Fri, 21 Sep 2001 11:15, Neil Silvester wrote:
> Another PHP problem has kept me up all night, scouring through my
> database books and trying everything I could think of. I am still new
> to the MySQL and PHP field, but never the lass I will not give up.
> $cat is a variable that is passed to t
Sorry,
In this case, use explode() instead of split() ...
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a s
Hi,
I am searching companies who will host my site. Presently I am looking out
for php, mysql and ssl support. So does anyone know a good company ?
Vishal
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.as
Try Hostex.com, they seem to be a pretty good host from what I hear and my
experience with them so far.
Rick
> Hi,
> I am searching companies who will host my site. Presently I am looking out
> for php, mysql and ssl support. So does anyone know a good company ?
> Vishal
>
> ___
Check out :
http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm
This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast,
reliable
and more than anything, very professional (specially in PHP / MySQL).
Sincere
Hey all,
Two related questions. If I remember correctly this has been beaten to death
before on the list, but here I am having issues with it, and ending up at
somewhat of a loss still.
I've built a media management system for a video company. It is built to
handle large data assets, such as ex
Hi all.
Is there a command to execute (run) from HTML or a php4 script a other php script
without a mouse click ().
I have a lot of php scripts and need them to execute from a master php script.
any help?
Thanks all,
Yours Hans.
On Fri, 21 Sep 2001 16:16, hvm wrote:
> Hi all.
>
> Is there a command to execute (run) from HTML or a php4 script a other
> php script without a mouse click ().
>
> I have a lot of php scripts and need them to execute from a master php
> script.
>
> any help?
>
> Thanks all,
>
> Yours Hans.
inc
On Friday 21 September 2001 00:31, Raphael Pirker wrote:
> this link refers to a function READING zip files, not actually creating
> one...
There's an article on creating zip files with pure PHP (other libraries not
needed) on zend's site.
Actually this is the 1st article in a series of them.
On Friday 21 September 2001 00:31, Raphael Pirker wrote:
> this link refers to a function READING zip files, not actually creating
> one...
Sorry, forgot to send the link to the zip creation class,
http://www.zend.com/codex.php?id=535&single=1
Have fun
--
Meir Kriheli
--
PHP General Mailin
You can do something like
Any variables in the master script's scope are in the scope of the
included files as well.
If you want to actually REDIRECT the user to another page, you can
use the header function to send a Location: header. See
http://www.php.net/manual/en/control-struct
Hi all,
Thanks a lot.
Yours Hans
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
101 - 160 of 160 matches
Mail list logo