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