mhash_file gives the hash your file
$file = /home/test.txt;
$td= mhash_init(MHASH_MD5);
$hash = mhash(MHASH_MD5,$file);
printf(-.bin2hex($hash));
mhashdiff.tar.gz
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
there are several functions in the bookshop php_mhash making,
it possible to determine the hash of a string.
but it not possible to give the hash of a file.
I have just added this function to the bookshop php_mhash, and I will wish to
contribute this share to PHP.
What do I have to make?
Post your unified diff patch to the php-dev list, let other
users review it. Someone with knowledge will apply it. You could
also apply yourself for a cvs account.
- Markus
On Thu, Sep 13, 2001 at 03:37:55PM +0200, [EMAIL PROTECTED] wrote :
there are several functions in the bookshop