<?php
// send wml headers
header("Content-type: text/vnd.wap.wml");
echo("<?xml version=\"1.0\"?>");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. "http://www.wapforum.org/DTD/wml_1.1.xml\">");
?>
<wml>
<card id="card1" title="Example 1">
<p>
<?php
// format and output date
$the_date = date("M d Y");
print $the_date;
print "<br/>Welcome to a PHP-enabled site!";
?>
hello
</p>
</card>
</wml>
just starting a tutorial , the header is giving me a compilation error at line 4, i have inserted all the mime types needed but still it doesnt work, what is the problem. The error message is : WML translation failed
<4>error: Start of root element expected instead of 'null'
<4>error: Expected comments, PI or EOF instead of 'null'
please help