The following script works:
$dir = "images/";
$images = glob($dir."*.jpg" );
foreach( $images as $image ):
echo"<li><img src='". '/' . $image . "' /></li>";
endforeach;
Problem is in the PHP script below.Not including more directories where pictures are present
$dir = "images/images2/";
$images = glob($dir."*.jpg" );
foreach( $images as $image ):
echo"<li><img src='". '/' . $image . "' /></li>";
endforeach;
how to resolve this problem.