md5 Unique name

See all posts Reply

md5 Unique name new!
by iceboxrj, 14 years, 7 months ago
Oi

I love this classe does all i need

But i needed to rename the photo name to an md5
wich i will send to a data base

thanksReply
Re: md5 Unique name new!
by colin, 14 years, 7 months ago
It is all in the docs... Simply do:

$handle->file_new_name_body = md5("Your string here");
Reply
Re: md5 Unique name new!
by iceboxrj, 14 years, 7 months ago
ok thanks

ill read more carefully


keep the good jobsReply
Re: md5 Unique name new!
by iceboxrj, 14 years, 7 months ago
yep
working
100%


thanks ColinReply
Re: md5 Unique name new!
by enatom, 14 years, 6 months ago
Why not just rename it with the Date+time+seconds+random5characters.jpg ... that way you get to keep a record of when the image was processed, and order the list in the folder via date, and IT WILL BE UNIQUE ?Reply