Re: WAP
| From: | qartis | Date: | Fri, 18 Jan 2002 05:54:45 +0000 |
| Subject: | Re: WAP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81034@lists.php.net to get a copy of this message | ||
An easier way to do this is (in wap.php):
<?
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");
?>
And then continue with <wml> tags. This will be parsed by php but will also
have correct headers for WAP browsers.