Welcome to Esato.com




Building your own WAP-sites

Click to view updated thread with images


Posted by rme
Just wondering if any of you guys have ever built an own wap-site? I was thinking of making my own but I've no such experience. I'm very familiar with HTML, CSS, PHP, XTM and such but I've got no idea about WAP-building. Could you guys guide me to the beginning? Thank.


Posted by DSF
Well, if you are familiar with HTML and PHP you can make powerfull wap pages.

Some steps:
1) If you have apache installed than write into a .htaccess file the MIME types for files extensions avaiable for download, including for wml extension. Read more here.
2) If you use a PHP script for generating WML pages don't forget to add in the top of the page(s):
header("Content-type: text/vnd.wap.wml");


Here is a basic example of a wap page (wml)

<?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="card_id" title="page_title">
<p>
Message
<br/>
row 2
</p>
</card>
</wml>

PS:
- the language is VERY strict, you must use all the tags with lowercase letters, and to close all the opened tags
- don't use <br>, you must use <br/>
- the page 'content' must be between <p> and </p>

Hope it helps somehow


Take a look also here

Posted by rme
Oh right! Thanks a bunch, mate!

Posted by DSF
rme with pleasure :)


Click to view updated thread with images


© Esato.com - From the Esato mobile phone discussion forum