note 47429 added to function.md5-file
| From: | richard at interlink dot com dot au | Date: | Tue, 16 Nov 2004 08:57:34 +0000 |
| Subject: | note 47429 added to function.md5-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80581@lists.php.net to get a copy of this message | ||
For those of you with PHP 4 that want to output the "raw" 128 bit hash, all you need to do
is send it to pack to convert the hex string into the raw output.
ie:
$filename="checkthisfile.bin";
$rawhash=pack("H*",md5_file($filename));
----
Manual Page -- http://www.php.net/manual/en/function.md5-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47429
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47429&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47429&report=yes
Search -- http://master.php.net/manage/user-notes.php