Senin, 30 November 2009

Creating a WAP site

Basically create a WAP site with a regular site. Upload your files and drawing markup, and if necessary use the script / web application. The difference is, his markup files in WML format and not HTML / XHTML. The pictures in WBMP format and not a GIF / JPG / PNG.

In addition, you need to add. Htaccess in your document root, the contents as follows:

index.wml DirectoryIndex index.html index.php
AddType text / x-hdml hdml
AddType text / wml vnd.wap.wml
AddType text / vnd.wap.wmlscript wmls
AddType image / bmp bmp
AddType image / wbmp vnd.wap.wbmp

DirectoryIndex directive above is useful so that if you accessed a WAP site without the file name, eg: index.wml http://wap.tokoku.com/ then there will also be searched and displayed. If not, then the page will appear autoindex Apache ( "Index of / ..."). The next lines to add the MIME Type WML.

To test your WAP site, can use the WAP browser or WAP phone simulator. Opera browser can be a WAP browser. In Firefox there are extensions wmlbrowser.
FAQ

XXX
See also

* Htaccess

Link

* WML article in Wikipedia, http://en.wikipedia.org/wiki/Wireless_Markup_Language

Tidak ada komentar:

Posting Komentar