When I flock a text file for writing, do I need to unflock a file?
Here is my code...
if ($file=fopen("vinfo.log", "a")) {
flock($file, 2);
fputs($file, "$vinfo\n");
} else {
echo("<b>Problem writing to log file!</b>");
}
if it needs to be unlocked, please modify the code for me.
Thanks in advanced,