RE: [PHP] can I rely on $PHP_SELF ???
| From: | ArsenKirillov | Date: | Mon, 15 Oct 2001 09:37:41 +0000 |
| Subject: | RE: [PHP] can I rely on $PHP_SELF ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71080@lists.php.net to get a copy of this message | ||
lists.php.net
> Subject: Re: [PHP] can I rely on $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???
> >
> >The problem is is PHP is installed as cgi.
> >
> >You can either use $SCRIPT_NAME or basename($PHP_SELF)
bad. What about path ?
>
> 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?