I need some help. : D
I want to create a page where you can upload one or more files after it is uploaded they get the md5 of the file
it must work with files that are on their computer but also files that are already on another server
so if they form a paste in the link text and click on submit, they also get the md5
I hope someone can help and get me a script ore something
You can't get the md5 of a file from user's computer, but you can get the md5 of a file stored in your server with the md5_file()
function.
Usage: md5_file('path/to/file/file.ext');
See md5_file() .
Just pass the filename of the temporary file ($_FILES['name-of-file-form-field']['tmp_name']) or the HTTP address, and you get exactly the MD5 as a result.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.