ID: 29948 Updated by: [EMAIL PROTECTED] Reported By: clehardy at betablue dot net -Status: Open +Status: Bogus -Bug Type: Variables related +Bug Type: Apache2 related Operating System: Windows XP Home PHP Version: 4.3.8 New Comment:
PHP sets it to whatever Apache tells it is. Not PHP bug. Previous Comments: ------------------------------------------------------------------------ [2004-09-02 11:44:06] clehardy at betablue dot net Description: ------------ If you add additional path information after the script name (as in www.domain.com/script.php/passed/arguments/) and the information is a URL (as in www.domain.com/script.php/http://www.php.net/), then $_SERVER['SCRIPT_NAME'] will contain '/script.php/http:'. This has only been tested with Apache 2.0.50 and PHP 4.3.8 in sapi mode (not CGI). In my test Linux enviroment, $_SERVER['SCRIPT_NAME'] will contain '/script.php' as expected, but that seems to be because the URL is translated to 'www.domain.com/script.php/http:/www.php.net/' (notice only one slash after http: instead of two). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29948&edit=1