[KLUG Members] XHTML & PHP

bill bill at billtron.com
Wed Jul 25 18:49:57 EDT 2007


On Wed, 2007-07-25 at 17:56, Eric Beversluis wrote:
> (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"

What is on line one of that file?

> ?? 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.

Let's take a look at line one first.  A T_STRING error is usually
something pretty simple.

kind regards,

bill
-- 
PGP/GPG Public Key: https://billtronservices.com/key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20070725/8262f623/attachment.bin


More information about the Members mailing list