I have an upload program script which successfully allows clients to add files & images to my server using the form
<INPUT type=file....
I have been able to make a list of a directory showing thumbnails of all images from the server.
I would like to be able to list the images from my local hard disk.
e.g.
$ImageDir = "c:/apache/htdocs";
$fd = opendir("$ImageDir");
while($entry = readdir($fd)) {
$dis = substr($entry,0,2);
if ($dis != "10"){
if(eregi(".(jpg|gif|png)$",$entry)) {
echo "<a href=$PHP_SELF?pic=/images/$entry>/images/$entry</a>";
echo "<a href=\"/images/$entry\">";
echo "<img src=\"/images/$entry\" align=middle
border=0 height=80 width=100>";
echo " $entry</img></a><br>\n";
Can anybody help?