RE: [PHP] Re: including a php file in an html doc
| From: | Jay Blanchard | Date: | Mon, 12 Aug 2002 14:22:53 +0000 |
| Subject: | RE: [PHP] Re: including a php file in an html doc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112130@lists.php.net to get a copy of this message | ||
[snip]
So is there any way to accomplish what I want to using php without
naming the files *.php??
[/snip]
in your httpd.conf file (Apache);
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
This will cause html files to be treated as PHP, remember to restart the
server.
HTH!
Jay