I have
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
//header("Content-type: application/vnd.wap.xhtml+xml");
header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
header("Pragma: no-cache");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php</div>
at the top of my page and then i have my main page start like the following
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if($action=="main")
{
addvisitor();
addonline(getuid_sid($sid),"Main Menu","index.php?action=$action");
$nick = getnick_sid($sid);
echo "<head>";
echo "<title>$nick@$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";</div>
I used w3c validator and got 5 errors, 3 of which are xml parsing errors
I am loosing people visiting my site coz their browser goes bust when they try to access my index.php
I will detail the errors in the consecutive post
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
//header("Content-type: application/vnd.wap.xhtml+xml");
header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
header("Pragma: no-cache");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php</div>
at the top of my page and then i have my main page start like the following
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if($action=="main")
{
addvisitor();
addonline(getuid_sid($sid),"Main Menu","index.php?action=$action");
$nick = getnick_sid($sid);
echo "<head>";
echo "<title>$nick@$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";</div>
I used w3c validator and got 5 errors, 3 of which are xml parsing errors
I am loosing people visiting my site coz their browser goes bust when they try to access my index.php
I will detail the errors in the consecutive post
Comment