PHP and file extensions

From: Date: Sun, 15 Oct 2000 18:47:04 +0000
Subject: PHP and file extensions
Groups: php.dev 
Request: Send a blank email to php-dev+get-35062@lists.php.net to get a copy of this message
People, I found this strange behaviour using Apache/1.3.14 (Unix), mod_ssl/2.7.0, OpenSSL/0.9.5a, PHP/4.0.3pl1: Apache root dir: /httpd/htdocs/ php script: phpinfo.php phpinfo.php has this contents: // Shows phpinfo() output <?php phpinfo(); ?> // eof /httpd/htdocs/phpinfo.php If I point my browser to http://my.site/phpinfo.php I get the expected output from phpinfo(). Now, if I point my browser to http://my.site/phpinfo I still get the output from phpinfo() but the php and zend logos don't show up. I thought I should get a "Not found" error message since I'm requesting a file that doesn't exists (I requested the file "phpinfo" WITHOUT a extension in its name). I tested this with any file extension listed in httpd.conf as "AddType application/x-httpd-php" directive and the results were the same. Could you please tell me if this is a known issue or expected behaviour? Any comments are welcome. Antonio Dias

« previous php.dev (#35062) next »