good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: uploading a file with the same nameby Abigail-II (Bishop) |
on Jul 24, 2002 at 13:51 UTC ( [id://184837]=note: print w/replies, xml ) | Need Help?? |
That would be a very, very bad way of dealing with this
problem. If two people want to upload a file with the
same name at the same time, you will get problems as your
program doesn't run atomically.
Keep a counter in a database, or a properly locked file and use that. Abigail
In Section
Seekers of Perl Wisdom
|
|