PHP: Missing records when writing to file
问题 My telecom vendor is sending me a report each time a message goes out. I have written a very simple PHP script that receive values via HTTP GET. Using fwrite I write the query parameter to a CSV file.The filename is report.csv with the current date as a prefix. Here is the code : <?php error_reporting(E_ALL ^ E_NOTICE); date_default_timezone_set('America/New_York'); //setting a the CSV File $fileDate = date("m-d-Y") ; $filename = $fileDate."_Report.csv"; $directory = "./csv_archive/"; /