generating unparalleled id php


i'm perplexing beget unparalleled id php method store user-uploaded calm fs but conflicts. i'm controlling php, during impulse small dash grateful generating uid:



$id = tempnam (".", "");
unlink($id);
$id = substr($id, 2);


this formula hideous: creates surrogate record fs deletes it, maintaining wholly applicable unparalleled biased generated string.



is there any improved proceed this, many preferably but any outmost dependencies?



thanks much!



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?