Re: Re: Random Unique ID
| From: | Tijnema ! | Date: | Thu, 22 Mar 2007 14:40:03 +0000 |
| Subject: | Re: Re: Random Unique ID | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251091@lists.php.net to get a copy of this message | ||
On 3/22/07, Roman Neuhauser <neuhauser@sigpipe.cz> wrote:
# markw@mohawksoft.com / 2007-03-22 08:49:59 -0400: Tijnema ! wrote:I quote the wrong guy i think, i meant to quote thisOn 3/22/07, Roman Neuhauser <neuhauser@sigpipe.cz> wrote:Ralf S. Engelschall's OSSP UUID library wrapped in a PHP extension (shipped with the library) won't work in safe mode? How's that?Note that this doesn't gonna work when safe mode is on..!http://www.ossp.org/pkg/lib/uuid
If you are running Linux, you can get this using: $GUID = exec("uuidgen"); As this is using the exec function, which doesn't work with safe mode on.
Generating a psudo-random unique key doesn't seem to be something PHP does well. I can post an extension this afternoon if anyone wants to use it. I'm curious. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW.Cause you weren't THERE. http://bash.org/?255991-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php