CStrauss Posted September 11, 2006 Share Posted September 11, 2006 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 More sharing options...
Cronthenoob Posted September 11, 2006 Share Posted September 11, 2006 Try this function.Opendir()I've used it to make a list of files in a folder. I'm sure you can use it to display the images. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now