RE: [PHP-WIN] Re: $PHP_SELF
| From: | Martin Lindhe | Date: | Wed, 23 Jan 2002 16:10:28 +0000 |
| Subject: | RE: [PHP-WIN] Re: $PHP_SELF | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11590@lists.php.net to get a copy of this message | ||
This depends on your php.ini configuration,
to assure your script works in any case, use
$_SERVER["PHP_SELF"] instead :)
/Martin
> -----Original Message-----
> From: Aasmund Sæter [mailto:aasmsa@online.no]
> Sent: Wednesday, January 23, 2002 5:15 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Re: $PHP_SELF
>
>
> I just installed PHP 4.1.1 and $PHP_SELF worked!
>
>
> "Aasmund SæTer" <aasmsa@online.no> wrote in message
> news:20020120145953.6050.qmail@pb1.pair.com...
> > I have been trying to get $PHP_SELF to display the filename, but I
> > only
> get
> > "Warning: Undefined variable: PHP_SELF ". Isn't this a
> supposed to a
> > predefined variable?
> >
> > I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache
> module.
> > Shouldn't it work then? I read on www.php.net that PHP_SELF
> wouldn't
> > work
> if
> > PHP is running as a command-line processor (CGI verion of PHP?).
> >
> > Please help me, I have been looking everywhere for an answer. I got
> scripts
> > (not made by me) which uses this variable.
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-windows-help@lists.php.net To contact the list
> administrators, e-mail: php-list-admin@lists.php.net
>