Jump to content

Recommended Posts

I would like to build a very simple photo gallery script but in a way that I have not used before. I would usually have approached this using a database but to keep it much more simple I just want my script to pick up what ever is in a given folder.

 

So what I want is a parent folder that holds my photo albums, we'll call this folder 'albums'.  In this folder will be other folders, one for each photo album.  I want my first page script to simplt look inside folder 'albums' and return a list of the folders found.  I can then on this first page display an index of folders.

 

My second page will be the gallery script that should then look inside the sellected album folder (from inside the 'albums' folder) and return a list of the files inside it.  I can then use this to display my gallery of thumbs.

 

I am sure this is a very simple process and already in use on many gallery sites.  I am just not sure on how you do the it on looking into the folder and returning the contents?

Link to comment
https://forums.phpfreaks.com/topic/75531-simple-dynamic-photo-gallery/
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.