//path to directory to scan $directory = "mytheme/images/myimages"; //get all image files with a .jpg extension. $images = glob($directory . "*.jpg"); //print each file name foreach($images as $image) { // put your condition here like for a particular roll no etc. echo $image; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)