flock again

From: Date: Fri, 20 Oct 2000 01:11:05 +0000
Subject: flock again
Groups: php.general 
Request: Send a blank email to php-general+get-21312@lists.php.net to get a copy of this message
flock seems to be impossible, even for a new file. I create a new file, and I can't lock it. WHY ? Minh $fp=fopen("cool.dat", "w"); if(!flock($fp,2)) { print("why<BR>\n"); } fputs($fp, "cool it works"); if(!flock($fp,3)) { print("rewhy<BR>\n"); } fclose($fp); _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.general (#21312) next »