setHeader("Test"); $tmp->plotLegend(); $tmp->PIEplot(); print $tmp->get_PIE("$fname"); } $camdpams = new Camdpams; $result = $camdpams->getInfectedCountryView_chart($from,$to,$src); //print_r($result); $path = "PIE/data/"; $fname = $path."country_pie_".date("Y_m_d", strtotime($from))."__".date("Y_m_d", strtotime($to))."_$src".".png"; $f_coord = $path."country_pie_".date("Y_m_d", strtotime($from))."__".date("Y_m_d", strtotime($to))."_$src".".txt"; //if(!file_exists($fname)){ get_pie_chart($fname,$result[1],$result[0],$f_coord); //} $handle = file($f_coord); print "