array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.ldap-get-option.php', 1 => 'ldap_get_option', ), 'up' => array ( 0 => 'ref.ldap.php', 1 => 'LDAP İşlevleri', ), 'prev' => array ( 0 => 'function.ldap-get-entries.php', 1 => 'ldap_get_entries', ), 'next' => array ( 0 => 'function.ldap-get-values-len.php', 1 => 'ldap_get_values_len', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ldap/functions/ldap-get-option.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
ldap_get_option — Get the current value for given option
Sets value
to the value of the specified option.
ldap
ldap_list() veya ldap_connect() işlevinden dönen LDAP\Connection nesnesi.
option
The parameter option
can be one of:
value
This will be set to the option value.
Sürüm: | Açıklama |
---|---|
8.1.0 |
ldap bağımsız değişkeni artık
LDAP\Connection nesnesi kabul ediyor, evvelce
resource türünde geçerli bir ldap link
değeri kabul ederdi.
|
Örnek 1 Check protocol version
<?php
// $ds is a valid LDAP\Connection instance for a directory server
if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)) {
echo "Using protocol version $version\n";
} else {
echo "Unable to determine protocol version\n";
}
?>
Bilginize:
This function is only available when using OpenLDAP 2.x.x OR Netscape Directory SDK x.x.