I use a 7210 simulator, apache web server and want to generate
wml using php4. I can browse a wml file but have problem in php.
(I already add the content type of php, wml to apache and
is able to exec php from web browser. Also, the Nokia
Mobile Internet Toolkit is running)
1. My script is as follow:
<?php
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="hello">
<p>
<?
echo date("m/d/Y"
?>
</p>
</card>
</wml>
When I browse using 7210, it return "No response try again"
and the Mobile Toolkit response : Error 415 : "Unsupported Media"
2. Do I really need to run Mobile Toolkit with 7210 to browse
a php script?
3. Should I use the "File|Open" in 7210 to point to the php file?
Why I can only access the file using
http://toolkit/d%3A/apache/Apache/htdocs/wap/date.php
but not
http://localhost/wap/date.php => Page not found
Is it something have to config?