Revision: 57195
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 21, 2012 00:05 by pruntrut
Initial Code
//path to directory to scan $directory = "../images/team/harry/"; //get all image files with a .jpg extension. $images = glob($directory . "*.jpg"); //print each file name foreach($images as $image) { echo $image; }
Initial URL
http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/
Initial Description
List all files in a diretory with glob
Initial Title
List all files in a diretory with glob (2)
Initial Tags
php, files
Initial Language
PHP