ldap_errno Return the LDAP error number of the last LDAP command &reftitle.description; intldap_errno resourcelink_identifier Returns the standardized error number returned by the last LDAP command. This number can be converted into a textual error message using ldap_err2str. &reftitle.parameters; link_identifier An LDAP link identifier, returned by ldap_connect. &reftitle.returnvalues; Return the LDAP error number of the last LDAP command for this link. &reftitle.examples; Unless you lower your warning level in your &php.ini; sufficiently or prefix your LDAP commands with @ (at) characters to suppress warning output, the errors generated will also show up in your HTML output. Generating and catching an error \n"; echo "LDAP-Error: " . ldap_error($ld) . "
\n"; die("Argh!
\n"); } $info = ldap_get_entries($ld, $res); echo $info["count"] . " matching entries.
\n"; ?> ]]>
&reftitle.seealso; ldap_err2str ldap_error