note 21857 added to function.ldap-next-entry
| From: | snameche at virtual-net dot fr | Date: | Wed, 29 May 2002 15:18:52 +0000 |
| Subject: | note 21857 added to function.ldap-next-entry | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31151@lists.php.net to get a copy of this message | ||
A short example :
$qry = ldap_search( $cxion, $ldap_base, '(cn=seb*)' );
$entry = ldap_first_entry( $cxion, $qry );
while( $entry ){
$dn = ldap_get_dn( $cxion, $entry );
echo "<b>$dn</b><br>\n";
$attrs = ldap_get_attributes( $cxion, $entry );
for( $i=0; $i<$attrs['count']; $i++ ){
echo "$attrs[$i]: ";
for( $j=0; $j<$attrs[$attrs[$i]]['count']; $j++ )
echo $attrs[$attrs[$i]][$j] . " ";
echo "<br>\n";
}
echo "\<br>\n";
$entry = ldap_next_entry( $cxion, $entry );
}
ldap_free_result( $qry );
--
http://www.php.net/manual/en/function.ldap-next-entry.php
http://master.php.net/manage/user-notes.php?action=edit+21857
http://master.php.net/manage/user-notes.php?action=delete+21857
http://master.php.net/manage/user-notes.php?action=reject+21857