On Sun, April 22, 2007 12:52 am, yitzle wrote: > I got a CGI script that is being used by multiple users. > It reads/writes data to a database (text file). > When it reads, it reads the entire file, and when it writes, it > tuncrates and rewrites the entire file. > Can/will this screw up the file if two people try to write to the file > at the same time? > How do I prevent problems? (SQL/MySQL is not an option)
I don't think it would because the first person to open the file has the editing rights. Another person that would open the file after the first one would think they are editing but it would not save. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/