Re: $PHP_SELF and Apache and Win32 (strange values)
| From: | Ignatius Teo | Date: | Tue, 20 Jun 2000 03:09:12 +0000 |
| Subject: | Re: $PHP_SELF and Apache and Win32 (strange values) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-542@lists.php.net to get a copy of this message | ||
This is right. The Apache/PHP on Win32 combo has this "feature" - I don't
remember this ever being a problem on PWS. (Hey, can someone "un-feature"
this ;-) ?)
Don't use $SCRIPT_NAME, or either that, use the $PATH_INFO variable or do
what I do, reference all $PHP_SELF vars as basename($PHP_SELF). Pain in the
neck, but it works.
Ignatius
----- Original Message -----
From: <phoenix@phoenixdigital.com>
To: <php-windows@lists.php.net>
Sent: Tuesday, June 20, 2000 11:37 AM
Subject: [PHP-WINDOWS] $PHP_SELF and Apache and Win32 (strange values)
>
> Hi,
>
> I must have my apache configured incorrectly because I get the following.
>
> PHP_SELF = /php3/php.exe/php/phpinfo.php3
> SCRIPT_NAME = /php3/php.exe
>
> Here are my setttings in my httpd.conf file.
>
> ScriptAlias /php3/ "c:/program files/internet/Apache/modules/php/php3/"
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3 .phtml
> Action application/x-httpd-php3 "/php3/php.exe"
>
> Is this correct, why are the values of SCRIPT_NAME and PHP_SELF incorrect?
>
> I have another webserver Xitami on the same machine and the values come
out correct.
>
>
> --
> 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
>