Index function.mcrypt module is block mode function.sesam num fields function.cpdf closepath stroke function.yp err string function set border style function set char spacing function.gmp add function.msql tablename function.gmp jacobi function.cal from jd |
[ Pobierz całość w formacie PDF ] .ldap_get_valuesPodręcznik PHPPoprzedniNastępnyldap_get_values (PHP 3, PHP 4 >= 4.0)ldap_get_values -- Get all values from a result entryDescriptionarray ldap_get_values (int link_identifier, int result_entry_identifier, string attribute) Returns an array of values for the attribute on success and FALSEon error.ldap_get_values() function is used to read allthe values of the attribute in the entry in the result.entry isspecified by theresult_entry_identifier.The number ofvalues can be found by indexing "count" in the resultantarray.Individual values are accessed by integer index in thearray.The first index is 0. This call needs a result_entry_identifier,so needs to be preceded by one of the ldap search calls and oneof the calls to get an individual entry. You application will either be hard coded to look for certainattributes (such as "surname" or "mail") or you will have to usethe ldap_get_attributes() call to work outwhat attributes exist for a given entry. LDAP allows more than one entry for an attribute, so it can, forexample, store a number of email addresses for one person'sdirectory entry all labeled with the attribute "mail"return_value["count"] = number of values for attributereturn_value[0] = first value of attributereturn_value[i] = ith value of attributePrzykład 1.List all values of the "mail" attribute for adirectory entry // $ds is a valid link identifier for a directory server// $sr is a valid search result from a prior call to// one of the ldap directory search calls// $entry is a valid entry identifier from a prior call to// one of the calls that returns a directory entry$values = ldap_get_values($ds, $entry,"mail");echo $values["count"]." email addresses for this entry.<p>";for ($i=0; $i < $values["count"]; $i++)echo $values[$i]."<br>";PoprzedniSpis treściNastępnyldap_get_optionPoczątek rozdziałuldap_get_values_len [ Pobierz całość w formacie PDF ] |
||||
Wszelkie Prawa Zastrzeżone! Kawa była słaba i bez smaku. Nie miała treści, a jedynie formę. Design by SZABLONY.maniak.pl. | |||||