Sman5109
07-10-2007, 09:31 PM
Hello, I have a php file and i want it to be served as application/xhtml+xml.
Heres the file:
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Eli Loewen Designs</title>
<meta name="description" content="Eli Loewen Web Design" />
<?php include('../keywords.php'); ?>
<link href="../stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all">
<div id="header"></div>
<div id="menu_top"></div>
<div id="menu">
<div id="menu_left"></div>
<div id="menu_divider_1"></div>
<div id="home_active"><a href="../home/" title="Home"></a></div>
<div id="menu_divider_2"></div>
<div id="portfolio"><a href="../portfolio/" title="Portfolio"></a></div>
<div id="menu_divider_3"></div>
<div id="services"><a href="../services/" title="Services"></a></div>
<div id="menu_divider_4"></div>
<div id="blog"><a href="../blog/" title="Blog"></a></div>
<div id="menu_divider_5"></div>
<div id="contact"><a href="../contact/" title="Contact"></a></div>
<div id="menu_divider_6"></div>
<div id="links"><a href="../links/" title="Links"></a></div>
<div id="menu_right"></div>
</div>
<div id="content">
<div id="content_background">
<div id="content_top"></div>
<div id="content_middle">
<h1>Welcome to Eli Loewen Designs </h1>
<p>With over 5 years of web design experience, I have extensive HTML, CSS, etc. knowledge. Every layout/design I make is completely XHTML 1.1 and CSS valid and always encoded with Unicode (UTF-8).</p>
<p>So far, every layout I have made I have done free of cost. My reasoning for this is that I believe that the best things in life are free. In addition, most new, up and coming people who want to make a web site really have no means of paying for stuff online because they are use usually under the age of 18.</p>
<p>Note: For this design and the rest of my works: From now on I am going to stop trying to make my creations work in old browsers (That means if you’re using IE6, this site is going to look bad). If this web site looks bad and you have an outdated browser, then you should upgrade your browser to the latest version. That means if you have IE6 you should upgrade to IE7 or even better, Firefox 2. </p>
<h2>Donate?</h2>
<p>If you would like to donate to this site to help keep this up and running for as long as possible, please use the link below to go to the new donation page.</p>
<p><a href="donation.php">Donation Page</a></p>
</div>
<div id="content_bottom"></div>
</div>
</div>
<div id="footer">
<?php include('../footer.php'); ?>
</div>
</div>
<?php include('../codes.php'); ?>
</body>
</html>
What do i change/add to get it to be served with that MIME type?
Thank you.
Heres the file:
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Eli Loewen Designs</title>
<meta name="description" content="Eli Loewen Web Design" />
<?php include('../keywords.php'); ?>
<link href="../stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all">
<div id="header"></div>
<div id="menu_top"></div>
<div id="menu">
<div id="menu_left"></div>
<div id="menu_divider_1"></div>
<div id="home_active"><a href="../home/" title="Home"></a></div>
<div id="menu_divider_2"></div>
<div id="portfolio"><a href="../portfolio/" title="Portfolio"></a></div>
<div id="menu_divider_3"></div>
<div id="services"><a href="../services/" title="Services"></a></div>
<div id="menu_divider_4"></div>
<div id="blog"><a href="../blog/" title="Blog"></a></div>
<div id="menu_divider_5"></div>
<div id="contact"><a href="../contact/" title="Contact"></a></div>
<div id="menu_divider_6"></div>
<div id="links"><a href="../links/" title="Links"></a></div>
<div id="menu_right"></div>
</div>
<div id="content">
<div id="content_background">
<div id="content_top"></div>
<div id="content_middle">
<h1>Welcome to Eli Loewen Designs </h1>
<p>With over 5 years of web design experience, I have extensive HTML, CSS, etc. knowledge. Every layout/design I make is completely XHTML 1.1 and CSS valid and always encoded with Unicode (UTF-8).</p>
<p>So far, every layout I have made I have done free of cost. My reasoning for this is that I believe that the best things in life are free. In addition, most new, up and coming people who want to make a web site really have no means of paying for stuff online because they are use usually under the age of 18.</p>
<p>Note: For this design and the rest of my works: From now on I am going to stop trying to make my creations work in old browsers (That means if you’re using IE6, this site is going to look bad). If this web site looks bad and you have an outdated browser, then you should upgrade your browser to the latest version. That means if you have IE6 you should upgrade to IE7 or even better, Firefox 2. </p>
<h2>Donate?</h2>
<p>If you would like to donate to this site to help keep this up and running for as long as possible, please use the link below to go to the new donation page.</p>
<p><a href="donation.php">Donation Page</a></p>
</div>
<div id="content_bottom"></div>
</div>
</div>
<div id="footer">
<?php include('../footer.php'); ?>
</div>
</div>
<?php include('../codes.php'); ?>
</body>
</html>
What do i change/add to get it to be served with that MIME type?
Thank you.