bobbybobbertson
Programmer
Hello,
Say I write a feedback form, where I get a bunch of data from the user and send that data to a cgi script. With that CGI script, I then put the user's data into a file called 'information.txt'.
Now, lets say that my feedback form gets called by two people that submit it close enough to eachother that while one person is submitting the other submition has the 'information.txt' file open.
if my open statement is:
open FILE, "information.txt or die "couldn't open";
Will the second submitter get an internal error page?
How do I write a feedback for such that this problem won't occor (if it does)?
Say I write a feedback form, where I get a bunch of data from the user and send that data to a cgi script. With that CGI script, I then put the user's data into a file called 'information.txt'.
Now, lets say that my feedback form gets called by two people that submit it close enough to eachother that while one person is submitting the other submition has the 'information.txt' file open.
if my open statement is:
open FILE, "information.txt or die "couldn't open";
Will the second submitter get an internal error page?
How do I write a feedback for such that this problem won't occor (if it does)?