#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    3
    Rep Power
    0
    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

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    3
    Rep Power
    0
    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

    • Gran Roguismo agrees

IMN logo majestic logo threadwatch logo seochat tools logo