Code: Select all
<?
$path = "Images";
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "Directory Listing of $path<BR>";
while ($file = readdir($dir_handle)) {
echo "<a href=$path/$file>$file<br><img src=$path/$file border=0></a><br>";
}
closedir($dir_handle);
?>This is only 1 step into what I hope to be a bigger code but I 1 down fall to this script is the 'Parent Directory' and the '$path' are shown at '.' and '..'
That in its self is not a problem but it seem it also add an image next too it.
Is there a way i can change the first two paths? i cant think of a way around this?