Jump to content

php picture listing function?


mikeymizrahi

Recommended Posts

can someone help explain to me how i can write a php script to show a bunch of pictures on a web page-

for example, i have 200 pictures in the folder "pictures"
instead of me having to link each and every photo like this: <img src="/pictures/image1.jpg"> <img src="/pictures/image2.jpg>, etc, etc,
what php function or script can automatically write this for me and show the pictures?

thats what php does afterall, right? dynamic pages!



p.s.-i did this the manual way on this page- [url=http://www.horsebackride.com/jb/photos/shpphotos/shp1.html]http://www.horsebackride.com/jb/photos/shpphotos/shp1.html[/url] and would like to learn the new way to save me a lot of time, and use php to its potential
Link to comment
https://forums.phpfreaks.com/topic/29761-php-picture-listing-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.