note 22728 added to function.ldap-search

From: Date: Thu, 27 Jun 2002 18:26:42 +0000
Subject: note 22728 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-32285@lists.php.net to get a copy of this message
Try to use ldap_list(), if possible. It is much faster. ldap_search searches a scope of LDAP_SCOPE_SUBTREE, but ldap_list searches a scope of just LDAP_SCOPE_ONELEVEL. This made a big difference on Novell eDirectory 8.6.1, even for a query that only returned 130 objects. Using an attribute list, the 4th function parameter (of either function), also made queries faster. -- http://www.php.net/manual/en/function.ldap-search.php http://master.php.net/manage/user-notes.php?action=edit+22728 http://master.php.net/manage/user-notes.php?action=delete+22728 http://master.php.net/manage/user-notes.php?action=reject+22728

« previous php.notes (#32285) next »