ң

ldap_get_option

(PHP 4 >= 4.0.4)

ldap_get_option - .

bool ldap_get_option (resource link_identifier, int option, mixed retval)

retval . TRUE , FALSE .

option : LDAP_OPT_DEREF, LDAP_OPT_SIZELIMIT, LDAP_OPT_TIMELIMIT, LDAP_OPT_PROTOCOL_VERSION, LDAP_OPT_ERROR_NUMBER, LDAP_OPT_REFERRALS, LDAP_OPT_RESTART, LDAP_OPT_HOST_NAME, LDAP_OPT_ERROR_STRING, LDAP_OPT_MATCHED_DN. draft-ietf-ldapext-ldap-c-api-xx.txt

: OpenLDAP 2.x.x Netscape Directory SDK x.x PHP 4.0.4.

1.
// $ds if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)) echo "Using protocol version $version"; else echo "Unable to determine protocol version";

. ldap_set_option() .


ң
ldap_get_entries ldap_get_values_len