Forum Moderators: open

Message Too Old, No Replies

explorer showing page as xml content

         

sneaks

7:44 pm on Nov 1, 2005 (gmt 0)

10+ Year Member



wasnt sure if i posted this in the right place because it could be apache or something but it began last night that php generated html pages are sometimes viewing as an xml file in explorer... netscape and opera display fine.

page passes w3c xhtml validation...
it only happens though to this page:


<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>XMLCMS</title>
<link href="css/xmlcms.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="containerIndex">
</div>
<div id="containerNotify">
<form id="searchWidget" method="post" action="doSearch.php">
<input name="term" type="text" id="term" />
<input name="search" type="submit" id="search" value="Search" />
</form>Done.</div>
<div id="containerFooter">
</div>
</body>
</html>

good ol' microsoft...

thanks
snx

Robin_reala

9:28 pm on Nov 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What mime type is your server sending them as?

encyclo

1:54 am on Nov 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you specifying the content type (mime type) explicitly? You could try adding a header with PHP before the page content:

<?php header('Content-Type: text/html; charset=ISO-8859-1'); ?>

Are you getting an XML DOM tree or are you getting a

text/plain
representation? Also, what is the file extension (if any) of the problematic file?