You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Arjen Schat <ar...@streamedge.com> on 2010/03/24 18:59:55 UTC

php and TimeUUID

Hi All,

Who can provide a working example of a TimeUUID implementation in php?
I either get TException: UUIDs must be exactly 16 bytes
or TException: TimeUUID only makes sense with version 1 UUIDs

I tried the Fredrik Lindberg - http://www.shapeshifter.se UUID class, but no option generates the right 16 bytes.

Kind regards,
Arjen Schat


Re: php and TimeUUID

Posted by Jeremy Dunck <jd...@gmail.com>.
There's been some discussion of php TimeUUID on this list previously
-- search the archives.

Most recently, this might help:
http://code.google.com/p/simpletools-php/source/browse/trunk/SimpleCassie.php

(Google Code seems a bit unsteady at the moment.)

On Wed, Mar 24, 2010 at 12:59 PM, Arjen Schat
<ar...@streamedge.com> wrote:
> Hi All,
> Who can provide a working example of a TimeUUID implementation in php?
> I either get TException: UUIDs must be exactly 16 bytes
> or TException: TimeUUID only makes sense with version 1 UUIDs
> I tried the Fredrik Lindberg - http://www.shapeshifter.se UUID class, but no
> option generates the right 16 bytes.
> Kind regards,
> Arjen Schat
>

Re: php and TimeUUID

Posted by Jonathan Ellis <jb...@gmail.com>.
SimpleCassie linked from
http://wiki.apache.org/cassandra/ClientExamples does time uuids, so
you could either use that or check its code to see what it's doing.

On Wed, Mar 24, 2010 at 12:59 PM, Arjen Schat
<ar...@streamedge.com> wrote:
> Hi All,
> Who can provide a working example of a TimeUUID implementation in php?
> I either get TException: UUIDs must be exactly 16 bytes
> or TException: TimeUUID only makes sense with version 1 UUIDs
> I tried the Fredrik Lindberg - http://www.shapeshifter.se UUID class, but no
> option generates the right 16 bytes.
> Kind regards,
> Arjen Schat
>