Thanks Adam,
That must be it. Everything works fine if I use a php file extension. Being
new to this stuff I just assumed that php would be like javascript which
always executes.
Anyway, thanks again, Walter Jaggli
-----Original Message-----
From: staffslug-bounces(a)staffslug.org.uk
[mailto:staffslug-bounces@staffslug.org.uk] On Behalf Of adam nicholls
Sent: 29 December 2007 00:08
To: staffslug(a)staffslug.org.uk
Subject: Re: [Staffslug] PHP - Apache 2
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
_______________________________________________
Staffslug mailing list
Staffslug(a)staffslug.org.uk
http://lists.staffslug.org.uk/mailman/listinfo/staffslug