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: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
Post Reply 


Messages In This Thread
[] - Sandeep - 05-18-2014 10:51 PM
[] - Brenton - 05-18-2014, 11:01 PM

Forum Jump:


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