<?
if ($handle = opendir('./images')) //change to point to your directory
{
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
echo "<a href=http://yourdomain.com/images/$file>$file</a><br />"; //change to match your path
}
}
}
?>