problem with "include" directive under XHTML
| From: | Robert Huff | Date: | Tue, 03 Jun 2008 14:25:45 +0000 |
| Subject: | problem with "include" directive under XHTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274957@lists.php.net to get a copy of this message | ||
I'm working on a project that involves converting HTML to
XHTML. Not strictly sure this is a PHP issue, but testing (so far)
has eliminated other possibilities.
Can someone offer suggestions why, on the same server (Apache
2.2.8), this works:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en-US">
<head>
<link rel=stylesheet type="text/css" href="proj_default.css"
title="ss_default">
<title>Testing html</title>
</head>
<body>
<script language="php">
include 'letters/Disclaimer';
</script>
<hr>
<address><a href="mailto:roberthuff@rcn.com">Robert
Huff</a></address>
<!-- Created: Wed Jan 19 10:52:50 EST 2005 -->
<!-- hhmts start -->
Last modified: Mon Jun 2 16:56:19 EDT 2008
<!-- hhmts end -->
</body>
</html>
but this doesn't:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing xhtml</title>
<link rel="stylesheet" type="text/css" href="proj_default.css"
title="ss_default" />
<link rel="icon" type="image/x-icon"
href="images/favicon.png" />
<link rel="shortcut icon" type="image/x-icon"
href="images/favicon.png" />
</head>
<body>
<script type="text/php">
include 'letters/Disclaimer';
</script>
<hr />
<address><a href="mailto:roberthuff@rcn.com">Robert
Huff</a></address>
<!-- Created: Wed Jan 19 10:52:50 EST 2005 -->
<!-- hhmts start -->
Last modified: Mon Jun 2 17:37:52 EDT 2008
<!-- hhmts end -->
</body>
</html>
Rspectfully,
Robert Huff