This script was created to utilize Amazon.com's Web Services to provide a real-time dynamic display of books or other items on your site that provide links for your visitors to purchase these items from Amazon.com using your affiliate code. This script uses SSI to call a CGI that parses Amazon.com's XML feed to provide search results and bestseller listings in HTML for your visitors.
I created my Amazon Products Feed (APF) Script to display pages of products and this script as a simple way of quickly displaying 1 product, primarily as a banner rotator. If you want more features, flexibility, details, and well just more, get the APF Script. This script can work in conjunction with it or as a stand alone script.
Edit the script to put in your Amazon affiliate id $associate_ids{us} = "freewarfrommrrat";
Check the first line in it and make sure it points to the proper location of Perl on your server #!/usr/bin/perl
Upload this cgi to your cgi-bin directory as ASCII and mark it as executable chmod 775
That's all you have to do to the script.
You can call this script with either SSI or Javascript.
Look at the Examples Page, it shows the code used to call each banner below it.
This script's options are SearchIndex, BrowseNode, Keywords, ItemId, and locale, just like the APF Script.
Keywords can be the words you want to search for separated by plus signs
ItemId can be up to 10 Amazon's ASIN or ISBN numbers separated by commas
and input_output=javascript to wrap the HTML output in JavaScript