I'm trying to create and test WAP pages on my pc. I've downloaded a wap emulator, that looks like a phone and you give it an url. I tried this with http://localhost/wap/dan.wml and I get an error saying invalid file (from the emulator).
My source looks like:
<?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!";
?>
</p>
</card>
</wml>
Any iedas? I thought it may have something to do the with <!DOCTYPE bit, as that has an url in it (and I'm not connected to the net, it's all offline). Is this it? And can I rig it to work on my local pc?
Thanks,
Danny