I made a wallpaper website, where all wallpapers and pictures are automatically detected by php script?? HELP?
|
05-18-2014, 10:45 PM
Post: #1
|
|||
|
|||
I made a wallpaper website, where all wallpapers and pictures are automatically detected by php script?? HELP?
So now I want to add a search script that would search a folder on server directory for jpg images and display them on search page. How to search for file names with jpg extensions.??
Ads |
|||
05-18-2014, 10:51 PM
Post: #2
|
|||
|
|||
//path to directory to scan
$directory = "wallpapers/"; //get all image files with a .jpg extension. $images = glob($directory . "*.jpg"); //print each file name foreach($images as $image) { echo $image; } Ads |
|||
05-18-2014, 11:01 PM
Post: #3
|
|||
|
|||
search script on net
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)