Re: Re: Random Unique ID
| From: | Tijnema ! | Date: | Thu, 22 Mar 2007 16:52:04 +0000 |
| Subject: | Re: Re: Random Unique ID | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251106@lists.php.net to get a copy of this message | ||
On 3/22/07, markw@mohawksoft.com <markw@mohawksoft.com> wrote:
On 3/22/07, Roman Neuhauser <neuhauser@sigpipe.cz> wrote:you are gonna use external modules/applications it will probably work only on your development server. Not everyone (nearly nobody) has such modules installed, so if you are planning to distribute, you need to keep in mind that everyone that want's to use the script, will need to install the used module/app. TijnemaI quote the wrong guy i think, i meant to quote this# markw@mohawksoft.com / 2007-03-22 08:49:59 -0400:Tijnema ! wrote:On 3/22/07, Roman Neuhauser <neuhauser@sigpipe.cz> wrote:Note that this doesn't gonna work when safe mode is on..! 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?http://www.ossp.org/pkg/lib/uuidAs this is using the exec function, which doesn't work with safe mode on.If you are running Linux, you can get this using: $GUID = exec("uuidgen");Take a hop over to www.mohawksoft.org, and check out "download," download MUniqID and tell me what you think. It should build as a module. I'm not sure where you want to use it for, but keep in mind that ifGenerating a psudo-random unique key doesn't seem to be something PHPdoeswell. I can post an extension this afternoon if anyone wants to useit. I'm curious.