Forum Moderators: buckworks
Any ideas?
Most sites where I run AWS, I do not display price/availability so I can process offline and store info in a database. My sites then draw from a database to generate the pages.
Most AWS scripts have two parts. The first just forms the URL, does a fopen() or fsocketopen(), and get the AWS response. The scripts I've seen oftne overcomplicate this part especially if you are processing offline. You can just go to the XML scratchpad that Amazon provides (http://www.amazon.com/gp/browse.html/ref=sc_bb_l_3/002-0223769-9004826?%5Fencoding=UTF8&node=3427431&no=3427431&me=A36L942TSJ2AJA)
see the format of the URL's and make your own.
The second part of the AWS scripts just parses the returned XML. These are a great time-saver because they have all of the tags Amazon uses nested appropriately. You can mix-n-match the script that forms the URL and the one that parses it.
The XML parsers typically return a PHP array that you can do what you want with. The format as to capitalization and nesting varies, but you can just do a print_r() to see what you have to work with.