4.17 How can I use Perl to make WML contents more dynamic? |
Like almost all other server side script languages, Perl can also be used to do some pretty fancy stuff for the WAP environment. One of the most frequently asked question around Perl and WAP is how to output the correct MIME type and document definition from Perl. Here's how to do just that:
print "Content-type: text/vnd.wap.wml\n\n"; print "<?xml version=\"1.0\"?>\n"; print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"\"http://...">\n"; print "<wml>\n"; ..and the rest of your code goes here.. |
Related information |
[ Main ] [ 04 - Serving WML contents ] |
© Copyright The Wireless FAQ. All Rights Reserved. Terms | Site Map |