PHP errors - Post ID 262802

User 243515 Photo


Registered User
508 posts

I'm using PHP includes to put a common header and footer in the pages as they are displayed, works great; however, when I run the Menu/Document/Validate HTML, I get the following error:

Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)

I have searched for a solution with no luck. I'm at the point of hard coding the header in every page on the web site (shudder)

This is the link to the pages I'm referring to: http://www.tacomagames.org/

Thank you;
Greg

User 187934 Photo


Senior Advisor
20,188 posts

You can't run php in the html editor.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 243515 Photo


Registered User
508 posts


yeah, more's the pity. Does that mean that when I run the validatorr I can ignore the PHP code errors?
User 187934 Photo


Senior Advisor
20,188 posts

Yes,Use an online validator to validate the actual page on the server.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 243515 Photo


Registered User
508 posts

Thank you Eric. I did find one other alternative, however I'm not inclined to install an Apache server on my laptop so...

Greg
User 187934 Photo


Senior Advisor
20,188 posts

I use WAMP. Works great with all the CC products.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.