can I rely on $PHP_SELF ???
| From: | Christian Dechery | Date: | Sun, 14 Oct 2001 18:08:49 +0000 |
| Subject: | can I rely on $PHP_SELF ??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71039@lists.php.net to get a copy of this message | ||
I'm trying to create the most portable authentication script possible...
so I'll have in all my files something like:
session_start();
require("../include.conf.php");
require(INCLUDE_DIR."/autentica.inc.php");
AutenticaAdmin( $PHP_SELF );
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???
_____________________________
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br