md5 Unique name

See all posts Reply

md5 Unique name new!
by iceboxrj, 15 years, 1 month 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, 15 years, 1 month 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, 15 years, 1 month ago
ok thanks

ill read more carefully


keep the good jobsReply
Re: md5 Unique name new!
by iceboxrj, 15 years, 1 month ago
yep
working
100%


thanks ColinReply
Re: md5 Unique name new!
by enatom, 15 years, 1 month 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