Originally posted by eriksmoen
haha... my bad... apparently editing an old post to upload a new file doesn't let you... so no here is the new file...
Do you have error handeling in there if the random variable exisits, I didnt see it.
What I have done, is pulls the time since the unix Epcoh Date("U") and then adds a random number so you have something like, and then add a random number
$rand = rand(1,999999);
$sec = date("U");
$file = "${sec}${rand}";
that seems to work pretty well, there is such a slight chance of any file having the same name now.