Re: PHP not working in html

From: Date: Fri, 08 Nov 2002 06:07:44 +0000
Subject: Re: PHP not working in html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123320@lists.php.net to get a copy of this message
On Friday 08 November 2002 05:35, Mike At Spy wrote: > There isn't any .htaccess file in the directory - I added one with the line > you specified, and my directory comes up with a 'server misconfiguration > error'. Any other ideas? :) You may have to put it inside a directory container: <Directory "/home/www/"> AddType application/x-httpd-php .htm .html </Directory> Or you can edit your httpd.conf file instead: <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .php3 .php .html AddType application/x-httpd-php-source .phps </IfModule> This will parse all html on all the websites served by apache. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* poor power conditioning */

« previous php.general (#123320) next »