No such thing as a small change | |
PerlMonks |
CGI filename raceby songahji (Friar) |
on Aug 27, 2007 at 18:00 UTC ( [id://635357]=perlquestion: print w/replies, xml ) | Need Help?? |
songahji has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
If case there is a thread already discussing this issue, my apology and please redirect me and I'll read up. Anyway, I am writing CGI form which creates a new file in a solaris box. Numbers is the filename. There is a history file which stores the last number used. What can I do to make sure that the filename will not get clobbered? I am using following routine:
I tested with 3 users at the submitting the form at same time (well, I tried to make sure three of us clicking the submit button at the same time) and 1 out of 5 testing the form clobbers.
TY,
Back to
Seekers of Perl Wisdom
|
|