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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to