|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-17 19:14 UTC] iliaa@php.net
[2003-02-17 21:10 UTC] mattb at columbia dot edu
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 11:00:01 2025 UTC |
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.