Right, the browser interprets the JavaScript that's sent to it; the server has to process the PHP before sending it to the client.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.
You're spot on here. You can have your web server process other files as PHP. Check the documentation for your web server to figure it out.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 ?
The other way around is ok: put HTML code in a .php file...Yep, that's fine. PHP ignores anything that's not in <? ?> and just outputs it to the browser.
HTH,
-- Chris Garaffa [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php