$file) { if(is_numeric($file->getFilename())){ $uctime = $file->getCTime(); $ctime = date("m/d/Y",$uctime); $ctime = strtotime($ctime); // Results in a day-specific unix timestamp if($ctime < $stopDate && $ctime > $startDate) { $currDate = $file->getCTime(); if(!isset($arr[$currDate])) { $arr[$currDate] = 1; } else { $arr[$currDate]++; } } } } $gphArr = array(); $i = 0; foreach($arr as $index => $item) { $gphArr[$i]['count'] = $item; $gphArr[$i]['label'] = date("j/n", $index); $i++; } //echo "
";
//  print_r($gphArr); 
  // Graph array
  $myGraph = new barGraph($gphArr, 900, 100);
?>