The criteria is basically this:
- folders will exist for about 24-48hrs
- folders names can not be readily guessable by a user (if used in a URL)
- folder names should be short 5-15 chars
Initial thoughts:
printf('%u',crc32(microtime(true)));
Details: When uploading a file, I basically want to keep the unique file name as named by the uploader, so to avoid any naming collision I would like to put it in a uniquely named directory ...