pbms_get_md5_digest
Description
string pbms_get_md5_digest ( [resource $pbms] )
Gets the MD5 digest of the BLOB just downloaded by pbms_get_data(), pbms_write_stream(), or pbms_get_info().

pbms_get_md5_digest() is the equivalent of calling pbms_get_metadata_value("PBMS_CHECKSUM_TAG");

Parameters
$pbms
A valid PBMS connection resource. If $pbms is not specified, the last link opened by pbms_connect() is assumed. If no such link is found, it will try to create one as if pbms_connect() was called with no arguments. If by chance no connection is found or established, an E_WARNING level error is generated.
Return Values

Returns the MD5 digest as a string on success.

Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.

Example
<?php 
  pbms_connect();

  // Fetch a BLOB back, 'name' is a LONGBLOB column.
  $result =mysql_query("select name from bobtest where id = 1");
  $row = mysql_fetch_row($result);
		
  /* Get the BLOB metadata only. */
  pbms_get_info($row[0]);

  $val = pbms_get_md5_digest();
  printf("MD5 digest: %s", $val );

  pbms_close();
?>
		
Related functions
pbms_get_data() pbms_write_stream() pbms_get_info()