Jump to content

Using a directory tree vs database


peuge

Recommended Posts

I am making a simple picture gallery for an artist. What I basically have in my gallery is a category list on the left (portrait, landscape etc) the enlarged picture in the middle, and the thumbnails on the right. Right now I have an images folder and in that folder I have a folder for each category. So for the category list on the left I use php to get the list of folders and display them. Then for the thumbnails the php gets each picture in the specified category and displays them. For the large picture there is a images/category/large folder. I was wandering if this is sufficient or if there will be too much server load? Currently there will be at most 100 pictures in the gallery. The reason I did it this way was so that adding new pictures I can just dump the file(s) in its respective folder and no other changes are needed. For the name of the picture I just use the filename.

 

Thanks in advance

Link to comment
Share on other sites

Well, mine, I use directory rather than dbase to store pix, though I don't use directory tree. The structure of the pictures is handled over the dbase, of course, with several tables to be used and all. In terms of names of the file, once uploaded, I changed them to the convenience of the system to avoid redundancy.

 

That's my picture, am also interested in hearing how others do this. :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.