Jump to content
Larry Ullman's Book Forums

Recommended Posts

  • 2 weeks later...

I'm not sure I want to use it for identify rows in a table yet but it would be nice to be able to add a 8 character hash to some fields like file uploads having a hash before the file name will reduce the likeliness of a file being overwritten by 99.999%, does cr32 create an 8 character hash or does it need to be truncated?

Link to comment
Share on other sites

Or you could store the file name using the primary key for the related table, which would 100% guarantee no overwrites.

 

As for "cr32", there's no such thing. If you're asking about crc32(), check out the PHP manual to see what it returns, or try it in code yourself.

Link to comment
Share on other sites

 Share

×
×
  • Create New...