Re: Apache, PHP, htm

From: Date: Thu, 21 Feb 2002 23:08:56 +0000
Subject: Re: Apache, PHP, htm
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-6115@lists.php.net to get a copy of this message
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 > >

« previous php.install (#6115) next »