September 2001
Intermediate to advanced
768 pages
32h 45m
English
string ldap_error(resource connectionID) Retrieves the error for the last LDAP command.
Returns:
Text of last LDAP error message
Description:
This function retrieves the error text for the previous LDAP command. This function automatically converts the error number provided by the LDAP API into its corresponding error message. If no error has occurred, the function returns an empty string.
Availability:
UNIX/Linux, Windows
Version:
3.0.13+, 4.0RC2+
Example:
$ldapconn = ldap_connect("ldap.foo.com");
if (!ldap_bind($ldapconn)) {
echo "Error: " ldap_error($ldapconn);
}
|
Read now
Unlock full access