<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: UUID / GUID in native PHP&#8230;</title>
	<atom:link href="http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/</link>
	<description>As a good friend once said - &#34;No Apologies.&#34;</description>
	<lastBuildDate>Thu, 26 Aug 2010 02:08:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jeffery</title>
		<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/#comment-39</link>
		<dc:creator>Jeffery</dc:creator>
		<pubDate>Tue, 15 Jul 2008 05:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.soulhuntre.com/items/date/2004/10/29/uuid-guid-in-native-php/#comment-39</guid>
		<description>Martijn,

How easy would it be to make a &quot;Time-based UUID&quot; following your example shown above? I believe they are version 1 uuid&#039;s?</description>
		<content:encoded><![CDATA[<p>Martijn,</p>
<p>How easy would it be to make a &#8220;Time-based UUID&#8221; following your example shown above? I believe they are version 1 uuid&#8217;s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gasper_k</title>
		<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/#comment-38</link>
		<dc:creator>gasper_k</dc:creator>
		<pubDate>Mon, 14 Jan 2008 09:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.soulhuntre.com/items/date/2004/10/29/uuid-guid-in-native-php/#comment-38</guid>
		<description>There is a native extension that provides the same functionality I believe: http://pecl.php.net/package/uuid. It uses libuuid, which is a sort-of-a-standard library for uuids. If speed is important, I think this is a good choice.</description>
		<content:encoded><![CDATA[<p>There is a native extension that provides the same functionality I believe: <a href="http://pecl.php.net/package/uuid" rel="nofollow">http://pecl.php.net/package/uuid</a>. It uses libuuid, which is a sort-of-a-standard library for uuids. If speed is important, I think this is a good choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Averett</title>
		<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/#comment-37</link>
		<dc:creator>Carlos Averett</dc:creator>
		<pubDate>Sun, 15 Apr 2007 15:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.soulhuntre.com/items/date/2004/10/29/uuid-guid-in-native-php/#comment-37</guid>
		<description>Hello,

I used your code as a basis for a UUID class in the framework I&#039;m writing.

http://coreforge.org/snippet/detail.php?type=snippet&amp;id=3

I actually use them as both session ids, and encryption keys for the session handler:

http://coreforge.org/snippet/detail.php?type=snippet&amp;id=1

As for storing them, I use a postgres domain to hold them:

CREATE DOMAIN &quot;UUID&quot; AS character(38) DEFAULT &#039;{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}&#039;::bpchar
	CONSTRAINT &quot;UUID_check&quot; CHECK ((VALUE ~ &#039;^{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}$&#039;::text));

They are stored in between brackets, similar to how Windows does it.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I used your code as a basis for a UUID class in the framework I&#8217;m writing.</p>
<p><a href="http://coreforge.org/snippet/detail.php?type=snippet&#038;id=3" rel="nofollow">http://coreforge.org/snippet/detail.php?type=snippet&#038;id=3</a></p>
<p>I actually use them as both session ids, and encryption keys for the session handler:</p>
<p><a href="http://coreforge.org/snippet/detail.php?type=snippet&#038;id=1" rel="nofollow">http://coreforge.org/snippet/detail.php?type=snippet&#038;id=1</a></p>
<p>As for storing them, I use a postgres domain to hold them:</p>
<p>CREATE DOMAIN &#8220;UUID&#8221; AS character(38) DEFAULT &#8216;{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}&#8217;::bpchar<br />
	CONSTRAINT &#8220;UUID_check&#8221; CHECK ((VALUE ~ &#8216;^{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}$&#8217;::text));</p>
<p>They are stored in between brackets, similar to how Windows does it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Kruithof</title>
		<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/#comment-36</link>
		<dc:creator>Martijn Kruithof</dc:creator>
		<pubDate>Wed, 07 Feb 2007 21:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.soulhuntre.com/items/date/2004/10/29/uuid-guid-in-native-php/#comment-36</guid>
		<description>The sites referred to a http://kruithof.xs4all.nl/uuid/uuidgen and http://kruithof.xs4all.nl/guid-uuid-random.html have been moved to
http://www.famkruithof.net/uuid/uuidgen (and http://www.famkruithof.net/guid-uuid-random.html)

While the old version of the page was written as a Java Servlet the new version has completely been rewritten in PHP. I have chosen a somewhat different approach for the generation of the random positions, by plainly generating multiple random numbers, each responsible for part of the string.</description>
		<content:encoded><![CDATA[<p>The sites referred to a <a href="http://kruithof.xs4all.nl/uuid/uuidgen" rel="nofollow">http://kruithof.xs4all.nl/uuid/uuidgen</a> and <a href="http://kruithof.xs4all.nl/guid-uuid-random.html" rel="nofollow">http://kruithof.xs4all.nl/guid-uuid-random.html</a> have been moved to<br />
<a href="http://www.famkruithof.net/uuid/uuidgen" rel="nofollow">http://www.famkruithof.net/uuid/uuidgen</a> (and <a href="http://www.famkruithof.net/guid-uuid-random.html" rel="nofollow">http://www.famkruithof.net/guid-uuid-random.html</a>)</p>
<p>While the old version of the page was written as a Java Servlet the new version has completely been rewritten in PHP. I have chosen a somewhat different approach for the generation of the random positions, by plainly generating multiple random numbers, each responsible for part of the string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Giese</title>
		<link>http://www.soulhuntre.com/2004/10/29/uuid-guid-in-native-php/#comment-35</link>
		<dc:creator>Joshua Giese</dc:creator>
		<pubDate>Thu, 07 Sep 2006 23:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.soulhuntre.com/items/date/2004/10/29/uuid-guid-in-native-php/#comment-35</guid>
		<description>Thanks for putting this together. I was looking for some GUID support for php. Its a shame that its not part of the core. You think something  like this would be needed by enough people to consider it</description>
		<content:encoded><![CDATA[<p>Thanks for putting this together. I was looking for some GUID support for php. Its a shame that its not part of the core. You think something  like this would be needed by enough people to consider it</p>
]]></content:encoded>
	</item>
</channel>
</rss>

