tailieunhanh - Webmaster's Guide to the Wireless Internet part 39

Webmaster's Guide to the Wireless Internet part 39. The Webmaster’s Guide to the Wireless Internet provides the Wireless Webmaster with all of the tools necessary to build the next generation Internet. Packed with the essential information they need to design, develop, and secure robust, e-commerce enabled wireless Web sites. This book is written for advanced Webmasters who are experienced with conventional Web site design and are now faced with the challenge of creating sites that fit on the display of a Web enabled phone or PDA | 352 Chapter 8 Wireless Enabling Your Big Bandwidth Site map print _ ENV _ br keys ENV print DISPLAY HDML elsif detect_accept eq wml print WML header and print out results print Content-type text n n print HEAD xml version DOCTYPE wml PUBLIC - WAPFORUM DTD WML EN http DTD HEAD print wml card id first title printenv p map print _ ENV _ br keys ENV print p card wml To install the program save the above text as and put it in your cgi-bin. If you are using a UNIX system you will need to make sure that the file is executable and that the first line of the file corresponds to the location of your Perl installation. You can request the file http cgi-bin with most any browser and view the complete list of environmental is no flow control in this script so bear in mind that when you send the content to an actual device you may find that the deck is too large for the device to handle. However the emulators that are available for both the and the Nokia WAP Toolkit do not suffer from the limitations imposed by WAP will deliver the deck contents even if they are too large for an actual device. Redirecting Your Users to Static Content Now that your Web server is up and running and you know where to look to find out what types of content your users can accept you can use this knowledge to give your users what they want content. In this section we will cover how to redirect your users to separate static pages based on their browser. If you implement this on your site it will allow you to send all of your users to the same URL http regardless of the device that they are Wireless Enabling Your Big Bandwidth Site Chapter 8 353 the user queries your URL they will execute the redirection script and be directed to an appropriate index page coded in either HTML WML or HDML. We will provide examples in PHP and

TỪ KHÓA LIÊN QUAN