|
Posted by Dano on 10/21/06 15:11
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
code, and "processing" the PHP.
I did this a couple of years ago, and here's a code snippet:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="HTML" title="HTML Tutorial">
<p>
<?
//PHP Code is "embedded" here
echo "This can be anything, from a database query recordset, a
mathematical formula, or some \"if-then\" logic. You're really only
limited by your imagination - and the WML schema!";
?>
</p>
</card>
</wml>
Hope that helps!
Rooll wrote:
> how with PHP create WML pages?
Navigation:
[Reply to this message]
|