Re: [PHP] Can't AddType .htm
At 02.04.2002 23:44, you wrote: I run Linux, Apache and PHP4.06. I want PHP to parse .htm documents. I have done this before on other servers with no problem by editing the following line in my httpd.conf. AddType application/x-httpd-php .htm .php .php4 .php3 But after restarting it doesn't do anything. .php files still work and .htm files don't work. If I try other suffixes other than .htm say .dog for example that works. So it seems something elsewhere is over riding it. Anyone got any suggestions. should work, do you have something like .htaccess enabled which overrides these settings My httpd.conf has every AddType on a separate line. Are these .htm pages in a directory which is available to apache/php - 'rights' HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't AddType .htm
Try adding both of these lines: AddType application/x-httpd-php .php .php4 .phtml .htm .html AddType application/x-httpd-php-source .phps Rick I regard as a mortal sin not only the lying of the senses in matters of love, but also the illusion which the senses seek to create where love is only partial. I say, I believe, that one must love with all of one's being, or else live, come what may, a life of complete chastity. - George Sand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't AddType .htm
Thanks for the suggestion but it didn't make any difference. Currently my http.conf file has AddType application/x-httpd-php .htm .php .php4 .php3 AddType application/x-httpd-php-source .phps I also have no .htaccess file to overide these settings. Anyone got any more ideas? Regards Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php