Query: hash_update_stream
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HASH_UPDATE_STREAM(3) 1 HASH_UPDATE_STREAM(3) hash_update_stream - Pump data into an active hashing context from an open streamSYNOPSISint hash_update_stream (resource $context, resource $handle, [int $length = -1])DESCRIPTIONPARAMETERSo $context - Hashing context returned by hash_init(3). o $handle - Open file handle as returned by any stream creation function. o $length - Maximum number of characters to copy from $handle into the hashing context.RETURN VALUESActual number of bytes added to the hashing context from $handle.EXAMPLESExample #1 hash_update_stream(3) example <?php $fp = tmpfile(); fwrite($fp, 'The quick brown fox jumped over the lazy dog.'); rewind($fp); $ctx = hash_init('md5'); hash_update_stream($ctx, $fp); echo hash_final($ctx); ?> The above example will output: 5c6ffbdd40d9556b73a21e63c3e0e904SEE ALSOhash_init(3), hash_update(3), hash_final(3), hash(3), hash_file(3). PHP Documentation Group HASH_UPDATE_STREAM(3)
Related Man Pages |
---|
pvm_freecontext(3pvm) - redhat |
wordwrap(3) - php |
hash_init(3) - php |
hash_update_stream(3) - php |
rewind(3) - php |
Similar Topics in the Unix Linux Community |
---|
C Minimal Perfect Hashing Library 0.8 (Default branch) |
excluding two or more groups of strings from printing |
Combined Two CSV Lines |
Find redundant text in a file |
UNIX Pipelines |