Re: .html or.php extension
| From: | Jason Wong | Date: | Sun, 08 Feb 2004 17:18:53 +0000 |
| Subject: | Re: .html or.php extension | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177149@lists.php.net to get a copy of this message | ||
On Friday 06 February 2004 06:15, E.H.Terwiel wrote:
> My PHP system demands that files to be interpreted by PHP MUST have
> the .php extension.
> If I have an .html file with <?php ....?> in it, it won't interpret
> the PHP code.
> Unlike JavaScript, f.i.
> Is there a way to make the server do the PHP code anyway, in an HTML
> file ? Or must the action yes-php/no-php be taken before looking into
> the file ?
If you're using Apache then you should have a line something like:
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
in httpd.conf. Simply add '.html' to the line and restart Apache.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
One man's folly is another man's wife.
-- Helen Rowland
*/