I was just wondering if someone could tell me how to get images in a ftp directory to show thumbnails? Thanks, Adam
Should be something close to: <?php //define the path as relative $path = "/home/yoursite/public_html/whatever"; //using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo "Directory Listing of $path<br/>"; while ($file = readdir($dir_handle)) { if($file!="." && $file!="..") echo "<a href='$file'>$file</a><br/>"; } //closing the directory closedir($dir_handle); ?> PHP: Just convert that while loop to an image rather than a link.