[PHP-DEV] PHP and file extensions From: Antonio Dias (accdias <email protected>)
Date: 10/15/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>