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 photos.zip 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.
gallery_photos/ root folder gallery_photos/(year)/ folder named by year, for example "2002" gallery_photos/(year)/(date)/ folder named by date in YYYY-MM-DD format so that they sort chronologically gallery_photos/(year)/(date)/(filename).jpg
This structure has several benefits:
- It avoids most filename conflict issues.
- It allows you to find photos by date if you do need to rummage through them on the file system.
- It allows easy 'Add Group' usage as often there are some attributes shared by photos taken on the same date.
Last Modified: January 15, 2004 @ 7:37 pm