If you are worried about this, you should probably use a database which will take care of this for you...
It is possible to use http://php.net/flock to lock the file, pretty much like the example in the manual, and then 4999 users will have to wait until the one editor is finished... You'll still need to be sure that those 4999 users then get the most current version before they start editing, so you'll need to check what they have now with what's in there before you let them blindly replace it... You're *REALLY* better off doing that with a database. *NOTHING* will truly allow you to do what you describe easily... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Kmarada <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 1:57 PM Subject: fopen !!! > is it possible to use fopen to open 5000 files differents simultaneous and > edit it simultaneous ? > > I have one file. if four user edit it simultaneous what happen? there is > something to lock the file until one finish to edit? > I read at manual something like flock how can i use it? > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]