Date: 06/02/02
- Next message: Rafael Martinez: "[PHP-DOC] cvs: phpdoc-es / Translators"
- Previous message: Rafael Martinez: "[PHP-DOC] cvs: phpdoc-es /features safe-mode.xml"
- Next in thread: mfischer <email protected>: "[PHP-DOC] Bug #13919 Updated: flock not working"
- Maybe reply: mfischer <email protected>: "[PHP-DOC] Bug #13919 Updated: flock not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13919
Updated by: mfischer <email protected>
Reported By: Julienc <email protected>
-Status: Closed
+Status: Open
-Bug Type: Filesystem function related
+Bug Type: Documentation problem
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:
It would be quite a benefit to incooperate this user contributed note
into the manual, reclassifying.
Previous Comments:
------------------------------------------------------------------------
[2002-06-02 15:42:52] k.schroeder <email protected>
File locking isn't supported by windows.
Please use the workaround from sbsaylors <email protected>:
"Well I needed some kind of "lock" in windows, so I just created a
lock.file in that directory. So if anything wants to 'write' to that
file (or append, whatever) it checks to see if a lock.file (or whatever
name you want to use) is there and if the date of the file is old. If
its old (1 hour) then it deletes it and goes ahead. If its not old
then it waits a random time. When its finised it deletes the file.
Seems to work alright but I havent tested anything and its only used
for maybe a 100 hits a day but... :)"
(User Contributed Notes,
http://www.php.net/manual/en/function.flock.php)
Regards, Kai
------------------------------------------------------------------------
[2001-11-04 07:02:11] Julienc <email protected>
flock($fp,2); alwas return false using windows 98. Here a little
testcase:
$fp=fopen ('myfile.txt','a');
if ( $fp != 0 && flock($fp, 2) ){
fwrite($fp, $mydatas);
} else {
echo 'error';
}
fclose($fp);
Other people having the prob: Bug#11828 and 2 users contributed notes
(sebastian.theek <email protected>, manuel.ricca <email protected>)
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=13919&edit=1
- Next message: Rafael Martinez: "[PHP-DOC] cvs: phpdoc-es / Translators"
- Previous message: Rafael Martinez: "[PHP-DOC] cvs: phpdoc-es /features safe-mode.xml"
- Next in thread: mfischer <email protected>: "[PHP-DOC] Bug #13919 Updated: flock not working"
- Maybe reply: mfischer <email protected>: "[PHP-DOC] Bug #13919 Updated: flock not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

