Re: Package proposal: Unique
| From: | Hans Lellelid | Date: | Tue, 24 Jun 2003 16:44:12 +0000 |
| Subject: | Re: Package proposal: Unique | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17674@lists.php.net to get a copy of this message | ||
With only having read the description / purpose ...
Is this like / the same as Horde_Token ? Seems to accomplish a similar goal. Not, sure however, if this class would use different drivers for storing used uniqids / tokens as I believe Horde_Token does.
Hans
cagrET wrote:
Hi, wondering if such package could be usefull Class provides methods to generate and hold unique ID's. The aim is to avoid multiple same records in your database tables. 1. Generate unique ID 2. Include it in your html FORM as post input etc 3. Check if incoming ID is unique, If yes then add this ID to unique_id table and add record example of use here: http://scg.milc.pl/cagret/Unique/example.php class here: http://scg.milc.pl/cagret/Unique/Unique.php there is also automate garbage collection of unique ID's - u can set maxlifetime cheers, -- cagrET