Re: Using PHP on an .html file
| From: | Kevin Waterson | Date: | Sun, 24 Aug 2003 03:54:55 +0000 |
| Subject: | Re: Using PHP on an .html file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160557@lists.php.net to get a copy of this message | ||
This one time, at band camp, Pag <dante@mail.telepac.pt> wrote:
>
> I 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
Kind regards
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia