Switch17
09-10-2003, 10:43 PM
I'm attempting to learn how to create some WML pages to view on a Smartphone, and came across this website Here (http://www.edevcafe.com/viewdoc.php?eid=44) in attempting to get started.
Well, the site shows to create this file as sample/test page. However, when I pull up my test page on my Smartphone, I get an error on line 4. I'm still fairly new at php, so if anyone can help, it would be great.
<?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 WAP-enabled site!";
?>
</p>
</card>
</wml>
Well, the site shows to create this file as sample/test page. However, when I pull up my test page on my Smartphone, I get an error on line 4. I'm still fairly new at php, so if anyone can help, it would be great.
<?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 WAP-enabled site!";
?>
</p>
</card>
</wml>