[KLUG Members] XHTML & PHP

Eric Beversluis ebever at researchintegration.org
Wed Jul 25 17:56:56 EDT 2007


(Maybe for Bill our php guru):
I've got a XHTML Transitional template that I use to start pages with.
It loads beautifully when I load it via Apache (localhost/template.htm).

Now I wanted to save it as a php template, so I took the code and just
saved it as template.php.

Now it won't load properly. I get this error message: 

"Parse error: syntax error, unexpected T_STRING in /var/www/template.php
on line 1"

?? Is there some issue with PHP and XHTML? The two books I'm using just
use plain HTML files and don't discuss XHTML at all. And my XHTML book
doesn't cover PHP or server side programming.

Thanks.

EB



More information about the Members mailing list