Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Server-Side Browser Detection and Content Delivery

Chapter 10. Server-Side Browser Detection and Content Delivery

Until now, this book has only discussed the client side of mobile web development. Server-side development has an especially important part to play here, though, not only because of all we know about dynamic content generation, but because the server is the only place where we can easily make decisions about what content to send to which devices.

In this chapter we will look at device detection and content delivery, and introduce the creation of a content store. The server also manages the MIME types of content, a very important feature we need to define for good compatibility in the mobile world.

Note

We can use any server-side platform, server, and/or programming language. For the purposes of clarity our samples will use PHP, although this chapter will provide short tips for ASP.NET and Java as well. You can easily export these techniques to any other server platform.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint