charliepoo Posted May 30, 2010 Share Posted May 30, 2010 Okay, my site is here: http://disfunctional-day.net Currently, I offer stock photography and I have about 2000 photographs all told, probably more, as shown here: animals photography page At the moment I've simply been coding this all myself manually by using html similar to this: <a href="photos/landscapes/IMAGENAME.JPG"><img src="photos/landscapes/thumb/IMAGENAME.JPG"></a> I know using a prewritten image gallery would probably be easier but I'm used to this kind of layout and tried coppermine once and didn't like it. I use a generator for this at the moment, but it's still a highly repetitive task which I'm guessing would be easier done by loading the names from the folder and then loading the matching names from the thumbnail folder, and then entering them into the HTML using some kind of loop. I however dunno the php directions for loading the names from the folder - I know a fair bit of C++ so could probably guess the loop part. Any help would be much obliged. Link to comment https://forums.phpfreaks.com/topic/203352-simple-image-gallery-work/ Share on other sites More sharing options...
gwolgamott Posted June 2, 2010 Share Posted June 2, 2010 If the images are located in unique folder structure I once created a dynamic script that did something similar to this. Could use directory iterator function see http://us.php.net/manual/en/class.directoryiterator.php Use that to go through the folders with the pictures and then echo each occurance of a photo as a link. Link to comment https://forums.phpfreaks.com/topic/203352-simple-image-gallery-work/#findComment-1066774 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.