- Code: Select all
<?php
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link type="text/css" rel="stylesheet" href="style.css">
<title>
The Cool Titlel
</title>
<meta http-equiv="Refresh"
content="1; URL=index.php3">
</head>
<body>
<?php
// go on with the dynamic content, using styles in style.css and
// echoing strict XHTML syntax
This errors out at the <?xml bit.
I tried it also with all the XHTML header stuff in a $hrd_string using
- Code: Select all
$hdr_string = <<<EOQ
.. all the xhtml header stuff
EOQ;
This also errors out.
Please help. How is this supposed to be done? Seems kinda clunky to start every index.php with
- Code: Select all
<?php
// notes...
?>
<html>
<head>
...
Does PHP have a better construct for setting up the html page, linking external stylesheets etc?
Thanks in advance,
chewy


