Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

ldap get option function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php ldap get option () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.4, PHP 5)

ldap_get_option -- Get the current value for given option

Syntax

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

Sets retval to the value of the specified option. Returns TRUE on success or FALSE on failure.

The parameter option can be one of: 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. These are described in draft-ietf-ldapext-ldap-c-api-xx.txt

Note: This function is only available when using OpenLDAP 2.x.x OR Netscape Directory SDK x.x, and was added in PHP 4.0.4

Example 1. Check protocol version

<?php
// $ds is a valid link identifier 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";
}
?>

See also ldap_set_option().

Php ldap get option Function syntax tag

ldap get option php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php ldap get option syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online