A Better PHP UUID

Use or disregard at will.

function uuid() {

return md5(getmypid().uniqid(rand()).$SERVER[’SERVERNAME’]);

}

More articles in the Archive →