Hi,

Saturday, July 26, 2003, 5:58:41 PM, you wrote:
j> Hi there!

j> What's the best way to create uids (unique ids) even when runnig at
j> exactly same time (microseconds)?

j> is this enough ???

j> $r = mt_rand();
j> $uid = uniqid(getmypid() . $r);

j> thanks

j> Jan


I use:

$id = md5(uniqid(rand(),1));

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to