This question already has an answer here:
- PHP function to generate v4 UUID 13 answers
Suppose many users uploading their pics at one time. So how could i generate a unique id for every pic which could never match with other generated id.
$uniqId = time().'_'.rand();
or should is use.
uniqid();
</div>