jon787
September 10th, 2001, 18:17
The basic format of an XHTML page should look like this:
Taken from W3C's website
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
</body>
</html>
I run my XHMTL pages with php in them to include header and footer files. But if I add the <?xml version="1.0" encoding="UTF-8" ?> line the PHP parser tries to parse that line! How do I get the php parser engine only to parse the ones starting with <?php and no the ones starting with <?xml
I run the apache webserver on my home computer.
Taken from W3C's website
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
</body>
</html>
I run my XHMTL pages with php in them to include header and footer files. But if I add the <?xml version="1.0" encoding="UTF-8" ?> line the PHP parser tries to parse that line! How do I get the php parser engine only to parse the ones starting with <?php and no the ones starting with <?xml
I run the apache webserver on my home computer.