This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Find all posts by this user
Quote this message in a reply
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

Find all posts by this user
Quote this message in a reply
05-18-2014, 11:01 PM
Post: #3
 
search script on net
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)