Forum Moderators: coopster
I want to include a file. "header.inc" in a php page.
I have the <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<? include "includes/header.inc";?>
I save the file then test the page and get the following error
XML Parsing Error: not well-formed
Location: file:///C:/my_work/mywebs/myweb/mypage.php
<? include "includes/header.inc";?>
--^
While it may not show up correctly on this page, becuase I copied and pasted the error...the ^ is under the space between the? and i
There is also a space between the ; and?
Any idea what I am doing wrong?
I removed the xml declaration. I uploaded the file to my server. It worked fine. I then tried to load the page locally C://blah blah blah and it opened as a text file using notepadusing I.E. Yet coming from the server it worked perfectly in I.E.
I guess that's just M$ for ya.
Thanks for your help. It is really appreciated!