i have a requirement where i am logging each page visit and activities into csv log file. how can i write so that the header should be written for the first time only not every time.
fputcsv($fh1, array(date,id1,page,id2,request,ip));
fputcsv($fh1, array($date,$mid,$page,$aid,$request,$ip));
The first array should be written once only for a particular date log file. Please Suggest.