APF Banner

[an error occurred while processing this directive]
Support this web site by purchasing from one of our Amazon affiliate stores:
Canada | France | Germany | Japan | United Kingdom | United States


The current version number is: 4.050716

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.





Click the following link to Get the Code.

this script uses SimpleGet.pl it will need to be in the same directory as the banner script. Get SimpleGet.pl

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





BTW:

You can subscribe/unsubscribe to our Scripts Announce list here.
You can discuss this script at MrRat's Scripts Support Forum


What's New:

07/16/05 - fixed bug when $link_to_apf = "no";

05/15/04 - total rewrite to upgrade to AWS 4

10/02/03 - updated to AWS 3

06/12/03 - updated buy link to latest specification

05/17/03 - added input_locale for UK support

02/08/03 - if no options specified script picks random top 10 selling item from random mode, shortened script by 10 lines.

02/02/03 - improved error trapping, fixed pc_hardware mode.

01/31/03 - added a new option, input_output=javascript using this option you can add the banner to pages without using SSI.

01/17/03 - script created


p.s. I am not associated with Amazon.com in any way besides being an affiliate. I just wrote this script for ease of use.


Home | Scripts | Freebies | Gaming | Forums | Unix to Windows | Gallery | Store | Press