November 9th, 2000, 08:20 AM
-
Could some one start me up on how to use php
for WAP applications.It would be great if I can get a simple example.Thanks in advance.
Comments on this post
November 15th, 2000, 10:24 AM
-
If you are using Apache, put this line in it's configuration:
AddType application/x-httpd-php .wml
and comment this line:
#AddType text/vnd.wap.wml .wml
Than in every WML file you put this header:
<?php
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">";
?>
than, just include your PHP tags in WML files :-)
Comments on this post