This is a quick and dirty php script that generates a web picture gallery.
There is no need for a database because it recursively scans the directory tree and outputs all the images inside a n html table. It generates a navigation menu to switch between galleries as well.
It's a good solution if you deal with big amounts of pictures because you can just use FTP to upload the pictures and the script generates the thumbnails and galleries automatically.
You could also insert the script in your page through an include php tag and customize the look of it by modifying the css style sheet.
The idea is that you add folders inside gallery/images to create more picture galleries. In this example I created a category called Arts and I placed the City and No-flash galleries inside of it.
This gallery is just a coding exercise to get a whole picture gallery work from one php script and no use of databses. The advantages of this solution are the speed and the simplicity of it. Although the code is not very clean, the gallery work pretty well.
There is a lot of room for improvement, this is just the ferst version of a little project.
The picture on the right is a sample of how the directory structure should look like when you install the PHP gallery:
You are more than welcome to try it, you can download it from the link on the bottom of the page.
Installation:
System requirements:
| Attachment | Size |
|---|---|
| sample-gallery.rar | 416.3 KB |
I’ve been through this article and find it very interesting. For more on tap dancing browse article at www.mgupload.net.
Billy Dawson
www.mgupload.net
Are wondering why the boat can float but the stones cannot.If you want to know why search in the http://www.seapyramid.net for you to be answered.
http://www.seapyramid.net
Yvette
I'm impressed. You're truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. I'm saving this for future use.
Vivian
Marks Web
imarksweb.net
Just wanted to give you a shout from the valley of the sun, that you have a great piece of details, these instructions are very clear and helpful. Thanks for sharing this awesome label. Can’t wait to see what else you have.
Joseph
Readers Guide
www.vssm.org
I really appreciate your comments. You're so intelligent and very creative in posting comments. Keep it up searching new things in life.Learning is fun, you gain more knowledge as what others did.have a great day!.
Kim
www.seapyramid.net
Mega Search
This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
Exhibit Rentals Press Release
Post new comment