News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NewsForge.com:
Exploiting Amazon Web Services via PHP and SQLite
March 17, 2006 @ 07:40:38

From the NewsForge site, there's this new tutorial that shares how you can develop some simple PHP scripts and, with the help of SQLite, "exploit" the Amazone Web Services.

A few weeks ago a friend asked me how my book, Pro OpenSSH, was selling on Amazon.com. I was tracking the sales by going to Amazon.com and viewing the book page to examine the sales rank. The only data displayed about history information was today's Sales Rank and Yesterday's Sales Rank, which isn't all that helpful. I decided to use PHP, SQLite, and the Amazon Web Services API to gather more useful data.

I thought it would be fun to track the sales rank over a period of time, then display a graph of the sales rank over time on a Web page.

He shows how, via the REST web service Amazon offers, he created a simple PHP5 script to grab the resulting XML, parse out the sales rank for his book, and drop it into a SQLite database. He chooses to go with the SimpleXML package for the parsing.

All of the code is laid out in the tutorial, including some to use the Image::Graph package in PEAR to render a simple line graph of the fetched information.

[digg it]

0 comments voice your opinion now!
exploit amazon web service rest sqlite simplexml sales rank exploit amazon web service rest sqlite simplexml sales rank


blog comments powered by Disqus

Similar Posts

NETTUTS.com: 10 Biggest Milestones in Web Development

PHPBuilder.com: Running PHP and Zend Framework Scripts from the Command Line

Top-books.org: Top PHP Books

Ben Ramsey's Blog: Flickr Namespace and array_multisort() Issues

Ilia Alshanetsky's Blog: PHP 5.2 will feature libSQlite 3.3.7


Community Events





Don't see your event here?
Let us know!


release tips series install introduction podcast list community package deployment api laravel bugfix voicesoftheelephpant framework symfony opinion interview library language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework