Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: uploading a file with the same name

by PhiRatE (Monk)
on Jul 25, 2002 at 08:05 UTC ( #185144=note: print w/replies, xml ) Need Help??


in reply to Re: uploading a file with the same name
in thread uploading a file with the same name

Or use the process ID as a portion of the name, ie image-$PID-$INCREMENTING_COUNTER, that should do the trick. So long as the operation is atomic within the PID it'll be fine (which it is).
  • Comment on Re: Re: uploading a file with the same name

Replies are listed 'Best First'.
Re: uploading a file with the same name
by Abigail-II (Bishop) on Jul 25, 2002 at 09:19 UTC
    Not necessarely. For instance if you are using a threaded webserver in combination with mod_perl. Whether each thread inside the same process get its own PID depends on the OS.

    Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://185144]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-07-21 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (449 votes). Check out past polls.

    Notices?