WML Bigromu

This will help you build Learn WML,Learn WAP applications...Learn WML,Learn Wireless,Understand Markup Language Tutorial, Wireless Application Protocol Tutorial, Building WAP sites tutorial, Building Wireless Application Protocol Website tutorial, Web Site tutorial, Wap Site tutorial, Wap tutorial, WAP tutorial, Site Mobile tutorial, Mobile Site Tutorial, PDA SITE,

Friday, October 13, 2006

Mime Types

In order for Apache to correctly interpret the type of file (e.g. GIF, HTML, JPEG, PHP, etc...) being requested by a user, it must know its MIME type.

It is necessary for you to secure permission to modify Apache's httpd.conf file, so that Apache can correctly recognize the MIME type extensions involved with WML.

Otherwise, without permissions, you will need to place the MIME-types within a .htaccess file.

The MIME types that you will need in order to correctly serve WML documents are as follows:
# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml

# For PHP 3.x, use this:
AddType application/x-httpd-php3 .wml

# For normal WML pages.
AddType text/vnd.wap.wml .wml

# For WML embedded graphics.
AddType image/vnd.wap.wbmp .wbmp

# End MIME Types for WAP

The above MIME types must be added to the Apache server's configuration file. There are two options for doing so:

* Via the Apache httpd.conf file
* Via the .htaccess file.

0 Comments:

Post a Comment

<< Home