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
> 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
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
3 matches
Mail list logo