WML and php

From: Steve Carson-Rowland (stevecarsonr_at_yahoo.com)
Date: 12/01/03

  • Next message: Janwillem Borleffs: "Re: php file download through hyperlink"
    Date: Sun, 30 Nov 2003 17:53:07 -0800
    
    

    I've pretty much a beginner but have got my web pages going fine with php
    and mysql.

    I tried to set up a .wml page so I could access some of the site data via a
    mobile - just playing to begin with.

    My script is below. It works fine if I have zero php. If I add one line of
    php - basically using 'echo' around text that works ok on its own - the text
    doesn't appear.
    Can anyone help?

    Thanks
    Steve
    Brisbane, Australia
    -------------------------------------------
    <?xml version="1.0"?>

    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
    "http://www.wapforum.org/DTD/wml13.dtd">

    <wml>

    <card id="RB" title="Repeat Business" newcontext="true">

    <p align="center">

    <?php

    echo"<big><b>Admin Function</b></big>";

    ?>

    </p>

    </card>

    </wml>


  • Next message: Janwillem Borleffs: "Re: php file download through hyperlink"

    Relevant Pages

    • Re: Real begginer
      ... I highly recommend "PHP and MySQL for Dynamic Websites" by Larry Ullman ... It's a beginner text. ... You will also need, an HTML reference, and as ...
      (comp.lang.php)
    • Please Recommend a Book
      ... I know the basics of PHP and MySQL (I am just a beginner) and would like ... to know more of a practical knowledge. ...
      (alt.php)
    • Re: WML and php
      ... > and mysql. ... It works fine if I have zero php. ... You probably give your page a .php extension then, and as i've noticed, ... If you add wml to AddType application/x-httpd-php .php, ...
      (alt.php)
    • Re: how with PHP create WML pages?
      ... Just like any other code, you "embed" the PHP in the code, which is ... served by the server. ... When a client - like an Internet-enabled cell ... phone - requests a WML document, the server responds by outputting the ...
      (alt.php)
    • Re: WML and php
      ... > I've pretty much a beginner but have got my web pages going fine with php ... > and mysql. ... > I tried to set up a .wml page so I could access some of the site data via ... It works fine if I have zero php. ...
      (alt.php)