Re: embedding php into html

From: Date: Thu, 25 Apr 2002 00:00:06 +0000
Subject: Re: embedding php into html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94473@lists.php.net to get a copy of this message
On Wed, 24 Apr 2002, Larry Brown wrote: > I have run many .php documents and generated html from them without > problems. I have a client whose specific need to to keep the .html > extention. I want to embed a php script into the html but the script won't > run. I've tried two php enabled servers running apache and neither picks it > out. Is there a trick I'm missing? Find the line in your httpd.conf file that looks like: AddType application/x-httpd-php .php and add .html to it so that it looks more like: AddType application/x-httpd-php .php .html This will cause PHP to get a crack at files ending with .html. As far as anyone seems to be able to tell, this doesn't slow anything down particularly. miguel

« previous php.general (#94473) next »