Re: [PHP] gettimeofday() question

2001-02-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("James Moore") wrote: > I would suggest using somthing like > > srand((double)microtime()*100); > $unique_id = md5(rand(0,32000)); > > which is very effective for creating unique id's. Or use uniqid() -- CC -- PHP General Mailing List

RE: [PHP] gettimeofday() question

2001-02-14 Thread James Moore
> I need to be able to create files with unique names. One thought > I had was > to use the date functions. In windows API you can call a function that > returns the number of milliseconds since, I think its January 1, > 1970. That > number would pretty much be garunteed to be unuquie (althou

[PHP] gettimeofday() question

2001-02-14 Thread John Vanderbeck
Hello, I need to be able to create files with unique names. One thought I had was to use the date functions. In windows API you can call a function that returns the number of milliseconds since, I think its January 1, 1970. That number would pretty much be garunteed to be unuquie (although it