andy's php projects
Script and site usage:
All of the scripts on this site are provided free for non-commercial, personal or non-profit use. If you wish to use any of these in a commercial system, please refer to the payment plan.

Support for each of the scripts is given, free of charge, on the message board. Each script has its own message board which can be accessed by clicking on the 'project forum' link (beneath the description of each project).

Proudly hosted with Dreamhost

Save $20 when signing up for Dreamhost by using the promo code amnuts20

If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh to encourage me to continue? Every little helps!

Zend Certified Engineer logo

CafePress Box

This class will display a random product from your CafePress store. You can supply a simple template to control style, and have the output link directly to the shown product or simply to your main account. You can cache the results so you don't have to connect to the CafePress website all the time. Images can also be cached locally, and can be resized before caching.


The main class file. Please view the comments for any instructions on how to call the functions.

14.41kb in size
last modified Mar 20, 2007 at 9:52am
8015 views, 8220 downloads


A test script so you can see how easy it is to use.

1.79kb in size
last modified May 6, 2006 at 1:54pm
6133 views, 6375 downloads
list all projects :: this project's forum :: script in action
added Jun 12, 2003 at 6:57pm :: updated Mar 20, 2007 at 10:06am :: 2 files :: 33574 views

© Andrew Collington, 2002-2007.