At 15:58 06/09/00, Ky Wang wrote:
>We have a CGI program that simply writes into a text
>file one line each time it runs. What happens if two
>users use this program on the Internet at the same
>time? Is there any concurrent access problem with this
>kind of setting?

Yes. There can be all kinds of problems with this kind of thing. You should 
be locking your files using flock. This is covered in some depth in perlfaq5.

hth,

Dave...


--
<http://www.dave.org.uk>  SMS: [EMAIL PROTECTED]
yapc::Europe - London, 22 - 24 Sep <http://yapc.org/Europe/>

"The blackness would hit me and the (void) would be calling..."

Reply via email to