Re: Apache, PHP, htm
| From: | Dan Long | Date: | Fri, 22 Feb 2002 01:02:22 +0000 |
| Subject: | Re: Apache, PHP, htm | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6117@lists.php.net to get a copy of this message | ||
Thanks for the response,
Tried it, nothing changed. If you have any other ideas... :)
-DanL
> You have to change Apaches mime.type file (in "conf" dir)
> and remove there the extension ".htm" for html Files (text/html)
> the it will work as expected
[ p i x e l p e t e r ]
pixelpeter@web.de
"Dan Long" <dlong@usgs.gov> schrieb im Newsbeitrag
news:20020221212040.86861.qmail@pb1.pair.com...
> 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
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php