Re: can I rely on $PHP_SELF ???

From: Date: Sun, 14 Oct 2001 20:16:13 +0000
Subject: Re: can I rely on $PHP_SELF ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71044@lists.php.net to get a copy of this message
At 21:06 14/10/2001 +0100, you wrote:
On Sun, 14 Oct 2001 15:08:49 -0300, Christian Dechery wrote: where AutenticaAdmin() will authenticate the admin and if successfull redirect to $PHP_SELF (the file trying to be accessed)... the question is: is $PHP_SELF reliable for this? Cuz I remember my first Apache configuration ever (I mean the first... total disaster)... and $PHP_SELF returned something very weird like '/php/php.exe/dir/file.php'... so my question is... will $PHP_SELF allways work or some servers will give me eerie info??? The problem is is PHP is installed as cgi. You can either use $SCRIPT_NAME or basename($PHP_SELF)
but I need the entire path to the file... not just the filename... that's the problem... and I think you answered my question... so if PHP is installed as CGI, PHP_SELF doesn't work? _____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br

« previous php.general (#71044) next »