I have the PHP search script from Commission Junction. It uses their api web service to find products in their huge database. A lot of people have had problems installing this script. Some have had success.
I can also provide demo scripts in the following platforms: Java, Perl, PHP5, Ruby, Visual Basic .NET and C# .NET. Each code example accesses the following Commission Junction Web Services: Product Search, Advertiser Search and Link Search. These code examples require the use of Commission Junction Web Services version 1.1, which is available at api.cj.com. Please review the readme file included in the appropriate ZIP file for additional information and instructions.