Apache, PHP, htm
| From: | Dan Long | Date: | Thu, 21 Feb 2002 21:20:37 +0000 |
| Subject: | Apache, PHP, htm | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6114@lists.php.net to get a copy of this message | ||
I am running Apache 1.3 with PHP 4 on a Solaris. PHP works fine with .php
extensions, but will not parse from .htm or .html extensions. I have tried
the standard response, i.e. setting
AddType application/x-httpd-php .htm .html
This continues to process html code, but leaves out all php code for all
file extensions. (It shows up in the source as text). I next tried:
AddType application/x-httpd-php .php .htm .html
With this, php works fine from .php files, still doesn't read from .htm
files, and causes all .html files to give a "download file" error.
I have searched your newsgroup extensively and have not found anyone who has
had difficulty with the above fix. I am at a complete loss on what to try
next. Any help would be appreciated.
-DanL