Re: Basic PHP Help: Global Variables?
A quick and easy way to get a unique ID is to MD5 the IP address that loaded the page combined with the current timestamp. Unless two computers from the same IP load the same page in the exact same second, there will be no conflicts.
To reduce that chance you can add a random number component to the hash string as well.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|