Entries:
"; /* This is the correct way to loop over the directory. */ while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { $file_info = getimagesize($dir."/".$entry); echo ""; echo $entry.", ".$file_info[3].", mime-type = ".$file_info['mime']."

"; } } closedir($handle); } //echo "

"; //echo "The above output is generated by the code below:
"; //highlight_file( __FILE__ ); ?>