php - Get MD5 Checksum for Very Large Files -


I have written a script that reads through all the files in a directory and gives md5 hash for each file. However, it does provide nothing for a very large file, I think the interpreter has some value set for the maximum processing time, and since it takes a lot of time to get this value, it leaves it with other files. Is there any way to get an MD5 checksum for large files via PHP? If not, can it be done with a CHAN job with CPANEL? I gave it a shot but it does not seem that action has been taken on my MD5Syome command: I have never received an email with hash. I have already written PHP here. This is a very simple code and files for files of a reasonable size:

  function md5_dir ($ dir) {if (is_dir ($ dir)) {if ($ dh = Opendir ($ dir))) {while ($ file = readdir ($ dh))! == incorrect) {echo nl2br ($ file. "\ N" .md5_file ($ file. "\ N \ n"); } Monkey ($ dh); }}}}  

However I do not reproduce it with PHP 5.2 or 5.3 It seems to be creating 2 GB files with 32 bip php.

However, this is not really a good solution that you can try to do to the system

  echo system ("Md5sum test.txt");  

46d6a7bcbcf7ae0501da341cb3bae27c test.txt


Comments