".$csv_file.".csv file successfully!";
}
// Create a new CSV file with the given name:
function create_csv_file($csv_file){
$f = fopen($csv_file.'.csv', 'wb');
fclose($f);
echo "".$csv_file.".csv file created successfully!
";
}
// Create the required CSV files if requested.
if(isset($_GET["create_files"]) && $_GET["create_files"] == "ok"){
create_csv_file("excessive"); create_csv_file("sufficient"); create_csv_file("moderate"); create_csv_file("dry");
}
if(isset($_GET["thermal_img"]) && isset($_GET["level"])){
insert_new_line($_GET["level"], $_GET["thermal_img"]);
}else{
echo "Waiting Data...";
}
?>