September 2000
Intermediate to advanced
608 pages
12h 59m
English
PHP uses Content-Type to specify content MIME type. To specify the MIME type for a WAP card, the following syntax is used:
<?php ("Content-Type: text/vnd.wap.wml"); ?>
Listing E.5 is the PHP code used to create the output seen in Figure E.1.
<?php ("Content-Type: text/vnd.wap.wml"); ?>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
<wml>
<card title="Welcome">
<p>
WAP is cool!
</p>
</card>
</wml>
|
Note
For more information on PHP visit http://www.php.net/
Read now
Unlock full access