Forum Moderators: coopster
I would like to display all images on a direcvtory so that I can upload an image based upon the thumbnail display. I am having trouble trying to ger a dir listing the clients c: drive?
$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";
}
Where $ImageDIr could be c:/apache/htdocs/images
Can anybody please help?
[edited by: dcrombie at 2:01 pm (utc) on Sep. 14, 2004]
Now I wont spend any more time trying it.
I suppose if there is a real need I can get clients to install triad apache and then give them a localhost php script to do this!
Thanks again!