So I got this code to list all jpg images inside a directory but it only works on my root directory and I don’t know how to point it to my images directory.
<ul>
<?php foreach (glob("N*T.jpg") as $image): ?>
<li>
<a href="<?php echo str_replace("T", "F", $image); ?>">
<img src="<?php echo "$image"; ?>">
</a>
</li>
<?php endforeach; ?>
</ul>
Can anyone help me with that?
This should work:
Otherwise: