I was wondering about doing some logging to a file in an application I am building.
I am wondering if there are hidden problems with doing something like the following. (Particularly with simultaneous attempts.)
$fp = fopen("data.txt", "a");
$fputs($fp, $data);
fclose($fp);
Are there more reliable ways of doing this, or is it sufficient?
Orson Jones