note 17762 added to function.md5-file
| From: | php at webshowpro dot com | Date: | Sat, 22 Dec 2001 06:10:33 +0000 |
| Subject: | note 17762 added to function.md5-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23788@lists.php.net to get a copy of this message | ||
For older versions you can use:
$md5 = exec("md5sum $dir/$file");
$md5 = substr($md5,0,32);
$md5 will now contain the md5 checksum of the file.
Of course your system needs to have the md5sum program installed,
and executable by the owner of the webserver process (usually
nobody).
--
http://www.php.net/manual/en/function.md5-file.php
http://master.php.net/manage/user-notes.php?action=edit+17762
http://master.php.net/manage/user-notes.php?action=delete+17762
http://master.php.net/manage/user-notes.php?action=reject+17762