RE: [PHP] PHP_SELF Undefined

From: Date: Tue, 19 Feb 2002 06:53:11 +0000
Subject: RE: [PHP] PHP_SELF Undefined
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85351@lists.php.net to get a copy of this message
I had this problem while running PHP under windows. I solved (well, rounded :) the problem with $SCRIPT_NAME (if I remember it right) which gives the very same result. Niklas -----Original Message----- From: Greg Donald [mailto:greg@ascendantmedia.com] Sent: 19. helmikuuta 2002 8:05 To: Php-General@Lists.Php.Net Subject: Re: [PHP] PHP_SELF Undefined > When I execute the code below, why is PHP_SELF undefined? I will appretiate > any help on this. I can get its value by: > echo $_SERVER["PHP_SELF"]; Thanks in advance! -Teresa Is your PHP install >= version 4.1.0 ? You can test with a call to phpinfo(); If your version is less than 4.1.0, try the global variable $PHP_SELF instead. ------------------------------------------------------------------------ Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ ------------------------------------------------------------------------ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#85351) next »