13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Solution Overview<br />

815<br />

Caching<br />

As we mentioned previously, one of the terms <strong>and</strong> conditions imposed upon developers<br />

by Amazon is that data downloaded from Amazon via <strong>Web</strong> Services must be cached. In<br />

this solution, you will need to find a way to store <strong>and</strong> reuse the data that you download<br />

until it has passed its use-by date.<br />

Solution Overview<br />

This project again uses an event-driven approach to run the code, as in Chapters 29,<br />

“Building a <strong>Web</strong>-Based Email Service,” <strong>and</strong> 30,“Building a Mailing List Manager.”We<br />

did not draw a system flow diagram for you in this example because there are only a few<br />

screens in the system, <strong>and</strong> the links between them are simple.<br />

Users will begin at the main Tahuayo screen, shown in Figure 33.1.<br />

Figure 33.1 The first screen for Tahuayo shows all the main features of the<br />

site: category navigation, searching, <strong>and</strong> the shopping cart.<br />

As you can see, the main features of the site are the Selected Categories display <strong>and</strong> the<br />

items in those categories. By default, you display the current best-sellers in the nonfiction<br />

category on the front page. If a user clicks on another category, she will see a similar<br />

display for that category.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!