LaneTG Posted August 24, 2011 Share Posted August 24, 2011 im having trouble finding a script like this, it should be simple but idk all i want is a script that can take any image within a file/folder and display it on a php page so the script would be on the php page and it would display the images on that page to but i would like it to grab it from a webserver other than mine using a link so lets say i wanted to grab all the images from "http://www.sitename/images/ everything in the folder images the script would take them and place them onto the page, it would show the image side by side for all and any image types in that one folder and it would show if you open a browser 2 days later if it has new images it would shpow the new images and if some have been deleted it would not hsow thoes so basically show the current images in that folder and post them on the php page the script is on as an actual image cant seem to find something like it but it looks to be a small simple script anyone know how i can achieve this function? Link to comment https://forums.phpfreaks.com/topic/245551-image-grabber/ Share on other sites More sharing options...
phpSensei Posted August 24, 2011 Share Posted August 24, 2011 Unless you had a naming convention for the files, i don't see how you can... Link to comment https://forums.phpfreaks.com/topic/245551-image-grabber/#findComment-1261172 Share on other sites More sharing options...
codefossa Posted August 24, 2011 Share Posted August 24, 2011 I don't see why you couldn't do something like: foreach (glob('images/*.jpg') as $file) { echo '<img src="' . $file . '">'; } Link to comment https://forums.phpfreaks.com/topic/245551-image-grabber/#findComment-1261235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.