Generating WML Pages with PHP
Using PHP to create a WML page
If you have decided to have a WAP version of your website and you want to make it dynamic, you can use PHP to generate your WML pages. In order to view WML pages you should download and install a phone emulator from Phone.com, Nokia.com or somewhere else. You can also use a WAP enable cell phone.
You should first make sure that the server your website is on can serve WML pages. (I am assuming it to be Apache) If the server doesn't know how to handle a .wml file, you can add it your Apache configuration or create an .htaccess file that adds the file type to a specific directory.
Sample .htaccess file
addtype text/vnd.wap.wml wml
addtype image/vnd.wap.wbmp wbmp
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
No comments:
Post a Comment