I configured Apache to serve WML pages. I tryed the examples found on
http://www.zend.com/zend/tut/wap.php
Everything is set up correctly. I use Openwave SDK 5.0 to test the examples (and Deckit under Linux) and I receive errors verytime! The error returned by the simulator is "Translation failed for content-type: text/vnd.wap.wml".
The error is somewhere in this line of the example:
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. "http://www.wapforum.org/DTD/wml_1.1.xml\">");
Also, using the UP.Simulator 4.1 i receive the folowing:
----------------- DATA SIZE ------------------------
Uncompiled data from HTTP is 508 bytes.
...found Content-Type: text/vnd.wap.wml.
======================= WML Errors =====================
WML translation failed.
(4) : error: Start of root element expected instead of 'null'
(4) : error: Expected comments, PI, or EOF instead of null
======================= End Errors =====================
********************* Current WML ***************************************
<?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>
Translation failed for content-type: text/vnd.wap.wml
I desperately need help! thank you