hi!
I work a little to save some data in a CSV file.
and I have come so far
$date = date('dmy');
define("LOG_FILE", $date);
if(!isset($_GET["temp"])) ;
$temp = $_GET["temp"];
$date=gmdate("Y-m-d-h-i", time());
$file_handler = fopen(LOG_FILE, "a+");
fwrite($file_handler, $date . "," . $temp . "\n");
fflush($file_handler);
echo "OK";
it works well.
I would like to combine the filename with a text FX. water level + the date .csv
but I can not get it to work for someone who will help