array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.yaz-errno.php', 1 => 'yaz_errno', ), 'up' => array ( 0 => 'ref.yaz.php', 1 => 'YAZ Funktionen', ), 'prev' => array ( 0 => 'function.yaz-element.php', 1 => 'yaz_element', ), 'next' => array ( 0 => 'function.yaz-error.php', 1 => 'yaz_error', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/yaz/functions/yaz-errno.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.1, PECL yaz >= 0.9.0)
yaz_errno — Returns error number
Returns an error number for the server (last request) identified by
id
.
yaz_errno() should be called after network activity for each server - (after yaz_wait() returns) to determine the success or failure of the last operation (e.g. search).
Returns an error code. The error code is either a Z39.50 diagnostic code (usually a Bib-1 diagnostic) or a client side error code which is generated by PHP/YAZ itself, such as "Connect failed", "Init Rejected", etc.