On 28/12/2007, walt <walt(a)helvatron.co.uk> wrote:
Hi,
Can anyone tell me why PHP5 suddenly refuses to interpret embedded php code
in an html document?
I am completely baffled by this one. Nothing has changed. HTML docs are
delivered correctly, PHP documents as well but code in an HTML doc with
<?php .....?> is ignored. If you check 'view source code' from the
browser
its all there including the php stuff.
I should be grateful for any pointers you might suggest.
Walter
_______________________________________________
Staffslug mailing list
Staffslug(a)staffslug.org.uk
http://lists.staffslug.org.uk/mailman/listinfo/staffslug
For PHP to interprete the code it has to have a .php extension. Not
sure why this is, I spose its so Apache knows to call PHP to execute
the code. Maybe someone more knowledgeable will know an answer to
getting PHP to execute as a .html file.
--
Adam Nicholls