Hi,
I would like to use a text file to implement a counter. Then I think I need to use flock before I write a new counter value into the text file. However, when I run that:
$fp = fopen("file.ext", "w");
flock($fp, 2);
fputs($fp, $count);
flock($fp, 3);
fclose($fp);
I find that file did not create. What's wrong with it?
Joe