You are here: Re: how with PHP create WML pages? « All PHP « IT news, forums, messages
Re: how with PHP create WML pages?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация