$dir[0]="/home/httpd/vhosts/nocoverguy.com/httpdocs/pictures"; $pg = $_GET['pg']; error_reporting(63); if (!isset($pg)){ $pg=0; }; $handle=opendir("/home/httpd/vhosts/nocoverguy.com/httpdocs/pictures"); $i=0; while ($file = readdir($handle)) { if (eregi("jpg$",$file)){ $folder[$i]=$file; $i=$i+1; }; }; closedir($handle); rsort($folder); $a=0; $count=5*7*$pg; ?>