Installing photos

When you have PHP and MySQL installed and configured, you're ready to install photos.

You should already know how to add files and directories to you web server, if you do not you're going to need to get a quick lesson from a tutorial (ask Google) or your local web geek before you can proceed.

1. Unzip the file that you downloaded (keeping the folder hierarchy intact) and put the files into a directory in your web server.

2. The photos you want to exist in the database must be accessible under the "gallery_photos/" folder. You should be able to create symbolic links or virtual directories to accomplish this if you don't want to actually store your photos in your web directory. The files and folders under this directory need to be readable by the web server.

3. Set the permissions on the 'temp' and 'saved_copies' folders and the files within the 'temp' folder so that they are writable.

4. Set your database server name, user name, password and table name in database.php.

5. Set your other settings in config.php.

6. Now we need to Create a Database Table.

Optional: add index.php to your web server directory default pages.


I organize my photos into the following directory structure - naturally, this app works quite well with this structure.

		root folder
		folder named by year, for example "2002"
		folder named by date in YYYY-MM-DD format so that they sort chronologically

example: gallery_photos/2002/2002-07-01/IMG_0001.JPG

This structure has several benefits:

Previous Page | Table of Contents | Next Page

Last Modified: January 15, 2004 @ 7:37 pm