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, you can add .html to the list of file extensions php will parse.



The other way around is ok: put HTML code in a .php file...



Yes. You can also seperate html from php, and just include the html file in your php script.



-- By-Tor.com It's all about the Rush http://www.by-tor.com

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



Reply via email to