Can I create a unique filename for user uploaded images using PHP's uniqid function? Will it do? or is there a risk of overwriting an exisitng image?
I also found this on the PHP manual, maybe it's less risky:
thanks
I also found this on the PHP manual, maybe it's less risky:
PHP:
<?php
// no prefix
$token = md5(uniqid());
// better, difficult to guess
$better_token = md5(uniqid(rand(), true));
?>