Re: Using PHP on an .html file
| From: | Chan Hong Guan | Date: | Sun, 24 Aug 2003 02:53:55 +0000 |
| Subject: | Re: Using PHP on an .html file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160559@lists.php.net to get a copy of this message | ||
Kevin Waterson wrote:
This one time, at band camp, Pag <dante@mail.telepac.pt> wrote:AddType application/x-httpd-php .htmlI looked everywhere for the answer to this dilemma, and i know there is a way around it, maybe something about the headers, cant really remember how it was, but can someone please tell me how i can use PHP code on a file with an extension of .html? 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 You forgot your dot
Kind regards Kevin