Re: $PHP_SELF and $SCRIPT_NAME differences in Win98/linux

From: Date: Thu, 01 Jun 2000 16:57:00 +0000
Subject: Re: $PHP_SELF and $SCRIPT_NAME differences in Win98/linux
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19994@lists.php.net to get a copy of this message
Correcting my name/reply email: doug edmunds: edmunds@ pacifier.com sorry ""Ugly duckling"" <notme@pacifier.com> wrote in message news:8h64c6$s3t$1@cvs.php.net... I have php 4.0 installed on both win98 and on linux (as apache module) - built, not rpm's My script: alpha.php reads: <? echo "PHP_SELF: $PHP_SELF<br>"; echo "SCRIPT_NAME: $SCRIPT_NAME <br>"; ?> 1. Under linux, Apache DocumentRoot is "/home/httpd/html" Script is /home/httpd/html/alpha.php From browser: http://localhost/alpha.php, both lines return the same information: PHP_SELF: /alpha.php SCRIPT_NAME: /alpha.php 2. Under windows, Apache DocumentRoot is "c:/home/httpd/html" Script is c:/home/httpd/html/alpha.php php.exe is in c:/php From browser: http://localhost/alpha.php, the results are different: PHP_SELF: /php/php.exe/alpha.php SCRIPT_NAME: /php/php.exe Why do I get different results from the 2 OS's? Is the windows version reporting the correct information or is this a bug? Or do I need to change something in php.ini or httpd.conf? --doug edmunds reply pls to edmunds@pacifier.com

« previous php.dev (#19994) next »