pbms_get_info
Description
string pbms_get_info ( string $blob_ref [,resource $pbms] )
Get metadata and headers from the PBMS daemon for the specified BLOB reference.
Parameters
$blob_ref
A BLOB reference for the data to be received.
$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 TRUE 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]);

  /* Print out some standard metadata 
  $val = pbms_get_metadata_value("PBMS_BLOB_SIZE");
  printf("SIZE: %s", $val );

  $val = pbms_get_metadata_value("PBMS_CHECKSUM_TAG");
  printf("CHECKSUM: %s", $val );

  $val = pbms_get_metadata_value("PBMS_ACCESS_COUNT");
  printf("ACCESS_COUNT: %s", $val );

  $val = pbms_get_metadata_value("PBMS_CREATION_TIME");
  printf("CREATION_TIME: %s", $val );

  $val = pbms_get_metadata_value("PBMS_LAST_ACCESS");
  printf("LAST_ACCESS: %s", $val );

  /* Assume you had a custom meta data field called "Author" */
  $val = pbms_get_metadata_value("Author");
  printf("Author: %s", $val );

  pbms_close();
?>
		
Related functions
pbms_get_metadata_value() pbms_get_data()