which it does in windows, but in Linux it only shows 1 thumbnail ? The print_r displays the right
number of entries.
$images = "thumbs/$name/"; $big = "gallery/$name/"; if($handle=opendir($images)) { while(false!==($file=readdir($handle))) { if($file !=="."&&$file !=".."&&$file !=rtrim($big,"/")) { $files[]=$file; } } closedir($handle); } //print_r($files); echo'<table width="100%" cellspacing="3"><tr>'; $cols = 6; $colCtr = 0; foreach($files as $file) { if($colCtr % $cols == 0){ echo'</tr><tr><td colspan="6"><hr/></td></tr><tr>'; echo'<td align="left"><a href="gallery/'.$name.'/'.$file.'"><img src="thumbs/'.$name.'/'.$file.'"/></a></td>'; $colCtr++; } } echo'</table>'; ?>