|
Make an easy list of your photos by MBK |
|
Just put this script somewhere and edit the $path variable to the path where the photos/images are you want to list.
It searches the dir for files with the extension jpg, gif and bmp. You can add more if you want.
Then it sorts them, and lists them.
-
<?
-
$path = "/the/path/with/your/photos/" ;
-
-
$count = 0;
-
while($entry=$d->read()) {
-
-
-
-
-
if ($extens == "jpg" OR $extens == "gif" OR $extens == "bmp") {
-
$file[$count] = $entry;
-
$count++;
-
}
-
}
-
-
-
for ($i = 0; $i < $count; $i++) {
-
echo "<a href='$path/$file[$i]'>$file[$i]</a><br>";
-
}
-
?>
|