note 82681 added to function.file

From: Date: Mon, 21 Apr 2008 22:49:17 +0000
Subject: note 82681 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-138626@lists.php.net to get a copy of this message
on file() and flock() My supervisor came up with a brilliant plan to workaround the inability of the file() to work on a flock()'ed file. We created a dummy file called lockfile.txt. We would flock() lockfile.txt. Once we had a lock on it, we used file() on the file we wanted to read, then altered the file and called fclose on both files. ---- Server IP: 209.41.74.194 Probable Submitter: 66.239.19.178 ---- Manual Page -- http://www.php.net/manual/en/function.file.php Edit -- https://master.php.net/note/edit/82681 Del: integrated -- https://master.php.net/note/delete/82681/integrated Del: useless -- https://master.php.net/note/delete/82681/useless Del: bad code -- https://master.php.net/note/delete/82681/bad+code Del: spam -- https://master.php.net/note/delete/82681/spam Del: non-english -- https://master.php.net/note/delete/82681/non-english Del: in docs -- https://master.php.net/note/delete/82681/in+docs Del: other reasons-- https://master.php.net/note/delete/82681 Reject -- https://master.php.net/note/reject/82681 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138626) next »