$fp = fopen($file2,"w"); fputs($fp, $OUTPUT); fclose($fp);
$fh = fopen($file, "w"); fwrite($fh,$stats2); fclose($fh);