RE: [PHP-DB] Re: php and WAP?

From: Date: Wed, 19 Sep 2001 18:35:34 +0000
Subject: RE: [PHP-DB] Re: php and WAP?
Groups: php.db 
Request: Send a blank email to php-db+get-12607@lists.php.net to get a copy of this message
You need to setup the MIME type, look below: Configuring MIME types Table 1. MIME Types for WAP Extension MIME Type Description .wml text/vnd.wap.wml WML source .wmls text/vnd.wap.wmlscript WMLScript source .wbmp image/vnd.wap.wbmp Wireless Bitmap In table 1, the mime types for serving WML content to your wireless device: WML (wireless markup language) .WMLS (WML SCRIPT), and WBMP to display Wireless Bitmap images. Table 2. MIME Types for Pre-Compiled WAP (optional) .wmlc application/vnd.wap.wmlc Compiled WML binary .wmlsc application/vnd.wap.wmlscriptc Compiled WMLScript binary In table 2, the WMLC gives your web server the ability to display WML in compiled binary format. This reduces the overhead and latency to the device. And you will be able to take advantage of content compression from the NES with this option in your web server. Apache: · First locate where the apache software is installed on your computer. Should this be a UNIX platform, then check /etc/httpd/conf/mime.typs or /usr/local/httpd/conf/mime.types . If not any of these locations, contact system administrator for further assistances. Configuring MIME types · Edit "mime.types" file using "VI" or any of your favorite editors. This will open up the mime type configuration file. In the configuration file you will need to input the mime types information as followed: · The most simplest way to configure apache with the appropriate mime types, just copy and paste the content o Compiled WML § application/vnd.wap.wmlc wmlc o WML Scripting § application/vnd.wap.wmlscriptc wmlsc o WML Content § text/vnd.wap.wml wml o Text Interpretation of WML Script § text/vnd.wap.wmlscript wmls o Wireless Bitmap Image § image/vnd.wap.wbmp wbmp IIS: · Right-click the desired directory (for instance "Default Web Site") and select Properties. You'll see a tabbed Default Web Site Properties dialog box. · Select the HTTP Headers tab, and click File Types. · In the File Types dialog, click New Type. · Input the Extension and MIME type from Table 1, first line. · You don't need to worry about the period in front of the extension-whether you type it or not, IIS will set it correctly. However, be very careful in your spelling of the MIME type. A small typo here will give you strange errors on your WAP phone that can be very difficult to debug. · Repeat for each MIME type. · When you've finished, click OK and OK again to save your changes and close the Internet Service Manager. If prompted to "Save console settings to iis.msc?" click Yes. Configuring MIME types IPlanet: To access the MIME Types page, perform the following steps: 1. Access the Server Manager and click the Preferences tab. 2. Click the MIME Types link. 3. Make the desired changes and click OK. For more information, see The Create Mime Type Page in the online help and Chapter 13, "Using Virtual Servers." From : http://docs.iplanet.com/docs/manuals/enterprise/50/ag/es60.pdf Netscape Fasttrack Web Server: To specify a default MIME type, use the Document Preferences page of the Server Manager. For more information, see the online help. http://docs.iplanet.com/docs/manuals/fasttrak/41/ag/ag.pdf

« previous php.db (#12607) next »