Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

geekindisguise

macrumors 6502
Original poster
Jul 22, 2008
297
0
Oklahoma
I am making a site that is gonna display there artwork and I need a way to easily manage the site and to add photos to a gallery. Really the only thing that will be changing once it is published, is the photos that are in the gallery. I want her to be able to just upload the photo and it will automatically be in the gallery. I know some PHP and will learn anything that I need. I think I have a general idea of what I must do to make it all work.

Well here is the mockup I made. It shows how the gallery will be. So, I need thumbnails and a full version of the photo.

Thanks

anna.jpg
 
PHP can read the files in a folder. Then you can use the glob function to specify what type of files you want it to capture. Then using that you can create the gallery as you like. You'd then also create a user area where they have a upload option where you can locate image files to be added. You could potentially be even fancier and allow zip files to be uploaded that get uncompressed on the server (don't ask me how, I've never tried).

For thumbnails you can follow various tutorials such as this one that makes use of the GD library to create thumbnail images on-the-fly. There's really tutorials for all this type of stuff. Is there any particular part of the implementation that you specifically are looking for guidance on?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.