This happens when I try to write wml using php together. I have add in the following lines in the configuration file of the apache.
<IfModule mod_php4.c>
AddType application/x-httpd-php .wml .phtml .php
AddType application/x-httpd-php-source .phps .wmlp .wmlsp
</IfModule>
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
RewriteEngine On
Catch most WAP browsers
RewriteCond %{HTTP_ACCEPT} text/vnd\.wap\.wml [OR]
WinWAP, WAPjag
RewriteCond %{HTTP_USER_AGENT} wap [OR]
#Nokia emulators (sdk)
RewriteCond %{HTTP_USER_AGENT} 7110
Rewrite to where your wireless page is located
RewriteRule \./$ /home/dave/mcom/index.wml [L]
And this is my index.wml codes
<?
header(\"Content-type: text/vnd.wap.wml\");
echo(\"<?xml version=\\"1.0\\"?>\n\");
echo(\"<!DOCTYPE wml PUBLIC \\"-//WAPFORUM//DTD WML 1.1//EN\\" \\"http://www.wapforum.org/DTD/wml_1.1.xml\\">\n\n\");
?>
<wml>
<card id=\'home\' title=\"SHOW\">
<p>
<?php
// format and output date
$the_date = date(\"M d Y\");
echo $the_date;
echo \"<br/>Welcome to a PHP-enabled site!\";
?>
</p>
</card>
</wml>
It returns \"Translation type not supported for text/vnd.wap wml" when I name the file as .wml, but when I name the file as .php, everything is fine. How can I name my file .wml and work just as well?
Can any one help me regarding this? What are the other settings I need to make to my httpd.conf or php.ini before I use php with wml and display on the simulator properly?
I need to hand up this project in 4 days