dealing with multiple users files on server
<p>I making script which downloads then uploads files, but since i'm using foreach loop to loop through files in folder there will be problem when two users use the script at the same time because it will upload files from the first user and vice versa.
What is the usual solution to this?
To make random named folder when the script is started, just for that one session? Then download and upload from that folder?</p>
