I have a page where people upload files through PHP, information about the person who uploaded the files and file description is stored in a file when they upload.
Basically, I want to have the md5sum of the file stored in that description as well so I can pull it when the files are listed.
Code: Select all
$md5file = "$current_dir/$filename";
$md5temp = exec('md5sum '.$md5file);My second question is once I get the md5sum, it will be "32 characters files\my files\file.zip" .... how can I only extract the first 32 characters so I just get the actual md5sum, instead of the md5sum and directory/file that will be in the output?