RE: [PHP] Creating Unique Values
| From: | Remco Chang | Date: | Wed, 04 Oct 2000 16:58:08 +0000 |
| Subject: | RE: [PHP] Creating Unique Values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18615@lists.php.net to get a copy of this message | ||
you might want to look into the md5() and uniqid() functions. i think
they should do what you're looking for.
----------------
remco chang
bountyquest.com
On Wed, 4 Oct 2000, Andrew Hill wrote:
> Why don't you just use unix time? This is unique at a certain point, and
> will never be repeated.
>
> Best regards,
> Andrew
> ----------------------------------------------------
> Andrew Hill
> Director Technology Evangelism
> OpenLink Software
> http://www.openlinksw.com
> XML & E-Business Infrastructure Technology Provider
>
>
> > -----Original Message-----
> > From: Andy Woolley [mailto:andy@milonic.com]
> > Sent: Wednesday, October 04, 2000 12:30 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] Creating Unique Values
> >
> >
> > Greetings people,
> >
> > Does any have a script that creates unique values in PHP.
> >
> > What I need is to do is create a value that will never be used again. I
> > think that a combination of date, time, milliseconds and some random chars
> > would be good.
> >
> > If I can't get one pre-done, then I'll build one and post it to
> > you all, it
> > shouldnt be too complicated to do, but I'm in a rush and I'm
> > getting lazy in
> > my old age.
> >
> > Cheers Folks.
> >
> > Andy Woolley
> > M.D.
> > www.databasewatch.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>