Zoe and Gavin .com

This is what happens when nerds marry

Zoe’s Mom found her parents’ old slide projector, with thousands of slides. There are pictures of weddings in the 60’s, 70’s and 80’s, pictures of missions trips in Africa, and lots of old family photos.

Elephant!

She dusted it off and began scanning the slides into the computer. When the old laptop started to buckle under the weight of 1000’s of scans, she called us. We set her up with an FTP account so that she can upload the photos to our server, and Zoe began searching for a script to allow easy browsing of the online photos.

To view the slides, click here.

She started with PHP Browse Folder, a simple (and free) solution from AlumniOnline. When we had the files listed, we added icons (from the Tango Icon Gallery) for files or folders (by default they look the same (file extensions are not shown)), threw Thickbox into the mix, and customized our own “Play” button to start a slideshow, for those that miss the old way of viewing these pictures.

We had a little trouble with finding out the actual PATH to our website on the 1&1 server. All information pointed to root (/), but this clearly wasn’t the case. PHP Browse Folder kept telling us “invalid path“.

Fine, I thought. I’ll just make my own version. Humph! I quickly created a PHP file and started to use the scandir() function. I must’ve had a typo in there, because upon running the script, I saw that there was a syntax error in /var/www/htdocs/photos.php. Instead of attempting to fix the error, I went back to PHP Browse Folder and plugged in the newfound PATH!

Once the PATH was correct, PHP Browse Folder worked like a charm. A little styling, and it was ready to send to the family for their slideshow-viewing pleasure.

You can see the final product here.

One Response to “PHP Browse Folder”

  1. Bruno Martino Says:

    Hi!
    I am the sysstem manager of IASI/CNR in Rome (Italy).
    IASI means Institute for System Analysis ad Informatics and CNR
    National Council of Research.
    I tryed to use and configure PHPBrowseFolder but without success …
    Can U help me to correct the source code bugs (or send me the version
    patched by you)?
    Thank you very much, i’m not a php expert but I neet to build
    an automatic help desk and knowledge base system to handle
    the problems of my users because my best interest is still the
    scientific research and not the user’s support!

    Bruno

    Thank’s in advance and sorry for my horrible english.

Leave a Reply