Home / Software / Pics Handler PHP


Pics Handler

PHP code for automatically creating a nice table of thumbnails and navigation system for browsing your pictures.

Download the PicsHandler ZIP file.

Introduction

Hola!

I created this PHP program after my hiking trip to the Camino (a wonderful trail which goes across Spain), where I came back with (no kidding) nearly 800 photographs. Naturally, I didn't want visitors to my web site to have to wade through all of these to get to the ones they really wanted to see, so I created this program.

"Pics Handler" comes in two parts. The first presents a table of thumbnails, each with a caption. The user can click on any thumbnail to see the picture full size. The second part allows the user to easily navigate from picture to picture (with next, back, first and last buttons).

Installation

Once you have downloaded the zip file, decompress the contents. It contains a single folder called "fellow_pilgrims". Move this folder to your web-site directory (you can rename it if you wish).

If PHP is enabled on your website, you should now be able browse through the sample pictures using a link such as: http://mywebsite.com/fellow_pilgrims . For an actual working example, check out http://www.pnelsoncomposer.com/camino/fellow_pilgrims. Experiment clicking on a picture and navigating through the full-sized photos.

How to modify for your own use

To modify the files for your own pictures, do the following:
  1. Remove all of the images in the "i" subdirectory (i.e. "fellow_pilgrims/i") and replace them with your own images.
    Note: All images should end in ".jpg".
  2. Remove all of the images in the "i_small" subdirectory and replace them with thumbnails of your full-size images.
    Note: Each thumbnail should have the same name as its corresponding full-sized image in the "i" subdirectory.
  3. Edit the "data.php" file. Replace the image file names (first argument of each "array()" command) with your own file names, and replace the captions with your own captions.
  4. Edit the "index.php" file. Change the text and look-and-feel for your needs.
  5. Edit the "ph_nav.php" file. Change the text and look-and-feel for your needs.
  6. Test it!

System Requirements

This program should run on nearly any server which supports the PHP scripting language. It has been tested with Apache 2.0.49 and PHP 4.3.6.

Licensing

This program is freeware. It can be used by anyone for any purpose whatsoever.

I am, however, posting this software in the hopes that it will drive more traffic to my website. So, if you want to help me out, then please link to http://www.pnelsoncomposer.com. The link to the PicsHandler software can be found at: http://www.pnelsoncomposer.com/software/PicsHandler.html.

Thanks! Paul