Re: can I rely on $PHP_SELF ???

From: Date: Sun, 14 Oct 2001 20:06:38 +0000
Subject: Re: can I rely on $PHP_SELF ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71042@lists.php.net to get a copy of this message
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) -- Matt Williams, on 14/10/2001

« previous php.general (#71042) next »