Jump to content

Need help reading images from a folder to create a gallery


CStrauss

Recommended Posts

Hello,I have created gallery scripts many times using mysql database but i want to try something diffrent and work with reading files with phpI have a script i writen that resizes images for thumbnails so Im looking for some logical solutions to go about reading the image files in the folder. So im trying to figure out how i need to go about pulling the images out of the folder to display on my page.I figured I need to open the folder then load the images in an array then loop through it to display the images with my my resize script to create thumbnails and links does this sound correct. Can anyone give me a simple example on how to read the image folder and load them in to an array and loop through to display.Usually I use a database which is easier to do this to sort them but i want to try something diffrent to expand my knowledge. Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...