1. Getting the Best of Both Worlds with PHP and Spry.
- Author
-
Power, David
- Abstract
The Spry gallery that you built in the previous chapter has two important shortcomings. First, the page's content is generated entirely inside the browser using JavaScript, leaving nothing for a search engine to index and failing miserably in an older browser or if JavaScript is disabled. Second, although the content is generated dynamically, the XML sources are static. In the case of a photo gallery, this might not be a major drawback, but one of the main reasons for creating dynamic web pages is to exploit the ability to update content on the fly without the need to build everything from scratch again. Rather than creating a new XML document every time a new photo is added or deleted, it's more convenient to add or delete the details from a database and generate the XML dynamically. This has the added advantage that you can use the database content for other purposes, greatly increasing your efficiency. [ABSTRACT FROM AUTHOR]
- Published
- 2007
- Full Text
- View/download PDF