I am building an online art gallery for a friend. It will have maybe 15 users uploading their art. I had planned on every artists art being uploaded to artwork/ but somehow i need to keep the filenames unique. I was thinking of $filename = $userid.$random_number.$filename, but would this ensure unique filenames? Or should I have each user have their own directory within artwork/? Can this be done? Could I have it create a directory upon user signup? And if I could do this... could I have a file written to that directory (such as index.php)? Will this be possible (and secure)?