[UPHPU] logging to a file

Orson Jones orson.uphpu at bookstore.usu.edu
Sat Dec 30 13:17:09 MST 2006


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



More information about the UPHPU mailing list