i am having a bad day trying wml in php. have done some configuration which were taken from http://www.zend.com/zend/tut/wap.php...1&anc=0&view=1
but sill does not work at all.
can someone help me on this thing? i need to test wml script alone, wml + php + mysql. currently, i can run wml script alone using Phone Simulator v7 from Openwave. but when i try to run wml+php, i get "Unsupported content type" error.
below are some the codes that i cant run on Phone Simulator.
PHP Code:<?php
/*
*wml inside php script
*/
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\">";
$name = "Eizan";
echo "Welcome to WML Presentation. <br>";
echo "My name is " . $name;
?>PHP Code:<?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>





Bookmarks