Re: Using PHP on an .html file

From: Date: Sun, 24 Aug 2003 02:59:08 +0000
Subject: Re: Using PHP on an .html file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-160560@lists.php.net to get a copy of this message
>> For example, on a file called info.html, i want to have some PHP >> code that actually gets executed. > >In your httpd.conf add the line > >AddType application/x-httpd-php html Better to do this in an .htaccess file, so you don't incur PHP processing overhead on the entire server (if there are others using it). http://httpd.apache.org/docs/configuring.html#htaccess --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#160560) next »