Forums

External entry and uid

awethumb 06 Mar, 2010
I have a few thousand entries that I need to backup and add to my form database.

so for example I have chronoforms_Cars
and I have external_cars

I need to export external_cars into the chronoforms_Cars.
Can you give me a hint or snippet to handle the uid?

I also need to handle the time, which I assume I can figure out, but that snippet would be appreciated as well.

Any info is appreciated.
J
awethumb 06 Mar, 2010
I actually just used an md5 of a date salted with the item name for the uid will this work?
I got the date figured out also... so disregard that.
GreyHead 06 Mar, 2010
Hi awethumb,

I don't think that it matters, the UID isn't used for anything specific. The code to create it is in the Autogenerated code box.
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16).md5(uniqid(mt_rand(), true));

Bob
This topic is locked and no more replies can be posted.