ID: 22261 Updated by: [EMAIL PROTECTED] Reported By: mattb at columbia dot edu -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: RedHat 8.0 PHP Version: 4.3.1 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This information is fetched from the Apache server and provided as is without any modifications. Therefor this is not a bug in PHP, it may however be a bug in Apache. Previous Comments: ------------------------------------------------------------------------ [2003-02-17 17:34:12] mattb at columbia dot edu I'm using PHP 4.3.1 with Apache 2.0.44 with the following directives set in my httpd.conf: ServerRoot /var/www # ... Listen 8080 # ... LoadModule php4_module lib/libphp4.so # ... AddType application/x-httpd-php .php .phtml .php4 .php3 AddType application/x-httpd-php-source .phps # ... Options Indexes # ... DirectoryIndex index.html index.php I have one file in my server root: index.php: - - - - - - - - %< CUT HERE >% - - - - - - - - <!-- File: index.php --> <pre> <?php var_dump($_SERVER['SCRIPT_URI']); ?> </pre> - - - - - - - - %< CUT HERE >% - - - - - - - - If I go to http://localhost:8080/index.php, I get the following output: <!-- File: index.php --> <pre> string(31) "http://localhost:8080/index.php" </pre> However, if I go to http://localhost:8080/, I get the following output: <!-- File: index.php --> <pre> string(17) "http://localhost/" </pre> This also happens with Apache 1.3.27 and an equivalent configuration. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22261&edit=1