Hi,
If I lock a file ... say :
$fp2=fopen("file.pid","a+");
if ($fp2 !=0 && flock($fp2,2) && fseek($fp2,0)==0){
rewind($fp2);
$popwrite2="some text\n";
fwrite($fp2,$popwrite2);
}
Now I don't unlock the file, that is, I don't do a fclose($fp2); - and continue with some code... will other requests which come in stay waiting for the lock to be released before they can access the code under the lock?
Is this a good secure way of doing things? - I already have ignore_user_abort(true);
Thank you.
-m.