Hey Everyone, I thought I'd update incase anyone else wants to do this...actually it was really easy to modify, I just had to think about it a lot. [!--coloro:#333399--][span style=\"color:#333399\"][!--/coloro--]<?php print ("<link href='style.css' rel='stylesheet' type='text/css'>"); //-- Array definitions $current_dir = 'images/press'; $files = array(); $pf = array(); $pdf = array(); //-- Read the directory and display the results. $dir = opendir($current_dir); while ( $f = readdir($dir) ) { $ext = substr($f,-4); //searches for specific extentions and adds the files to the arrays. if you want to add a new extention, just type or $ext == ".whateverextention" inside the () if ( $ext == ".pdf" or $ext == ".mov" or $ext == ".wmv" ){ //f=extention $pf = explode('.',$f); //files=full file name $files[] = $f; //pdf=filename = extention $pdf[] = $pf[0]; } } closedir( $dir ); //sorts by filename numerically rsort($pdf); rsort($files); print( "<table height=350 id='middleRow' cellspacing=5 cellpadding=5 border=0><tr>"); for ($i = 0; $i < count($files); $i++){ //references(prints) the link to the full file print ("<td height=350 valign=middle><a href='/images/press/" . $files[$i]. "' target='_blank'>"); //prints the thumbnail print ("<img src='/images/press/thumbs/" . $pdf[$i] .".gif' border=0 /></a></td>"); } print ("</tr></table>"); ?> [!--colorc--][/span][!--/colorc--]