Jump to content

PHP GUID...possibility of duplication?


louis_coetzee

Recommended Posts

If I am using a php guid, is it necessary for me to worry about it being duplicated? Is there a way that I can insure that this never happens, because I want to use a guid as an unique id for each of the users in my db, never mind the size, it must be impossible even if I have millions of members.

 

This is how I do it:

$actlink = md5(uniqid(rand(), true));

Link to comment
https://forums.phpfreaks.com/topic/141046-php-guidpossibility-of-duplication/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.