FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Is spl_object_hash unique in the SQL sense? Can it be used as a unique SQL db column?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Is spl_object_hash unique in the SQL sense? Can it be used as a unique SQL db column? [message #178386 is a reply to message #178374] Tue, 12 June 2012 18:47 Go to previous messageGo to previous message
kurtk(at)pobox(dot)com is currently offline  kurtk(at)pobox(dot)com
Messages: 10
Registered: May 2012
Karma:
Junior Member
> No, hashes can never guaranteed to be unique.

I opted to use

md5(uniqid());

to create a unique key.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Best practice, (secure), to save session data?
Next Topic: runkit
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 05:48:03 GMT 2024

Total time taken to generate the page: 0.04486 seconds