Thread: wml via php

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

    Join Date
    Sep 2000
    Location
    Gothnburg, Sweden
    Posts
    1
    Rep Power
    0
    Hi. I'm attempting to use php to output some news from a database to a wml document.
    I took a working wml file (hosted on apache) and added

    <?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">";
    ?>

    to the top of the file. I then changed the extension to .php

    Unfortuantely, something seems to be wrong. The wap browser I use to verify that things are working (www.gelon.net) claims that the page that's oputput is still probably html - and fails to load.

    What am I missing?

    Rikard

    p.s. The file's at http://www.rawmeat.org/wapnews.php

    ------------------
    [Scientific study] is one of the very few things that raide human life a little above the level of farce, and gives it th egrace of tragedy.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    Either you need a special mod/plugin for Apache to display WML, or the PHP and XML tags are being confused on the server. I don't know right from left in the world of WAP programming, so I'm sorry that I can't help any further.

    ------------------
    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. PHP validation in WML
    By Phily in forum PHP Development
    Replies: 2
    Last Post: January 28th, 2004, 08:47 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo