note 34833 added to function.ldap-first-entry
| From: | eddie at omegaware dot com | Date: | Thu, 07 Aug 2003 22:57:23 +0000 |
| Subject: | note 34833 added to function.ldap-first-entry | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53603@lists.php.net to get a copy of this message | ||
Here's a nice way to user ldap_first_entry,ldap_next_entry.
$res = ldap_search($ldapc,$searchroot,$filter,$attributes);
for ($entryID=ldap_first_entry($ldapc,$res);
$entryID!=false;
$entryID=ldap_next_entry($ldapc,$entryID))
{
// Do stuff with the $entryID.
$values = ldap_get_values($ldapc,$entryID,'uid');
}
----
Manual Page -- http://www.php.net/manual/en/function.ldap-first-entry.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34833
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34833&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34833&report=yes