I am trying to make gallery which displays all the .jpg files in some local directory, but it makes me problem.
<?php
$directory = "img/";
$images = glob($directory."*.jpg");
foreach($images as $image)
{
echo '<img src="file://'.$image.'" /><br />'
}
?>
Somehow path to jpg file is not correctly passed to the src attribute, where I am wrong?