note 27822 deleted from function.ldap-sort by danbrown

From: Date: Wed, 31 Mar 2010 16:23:52 +0000
Subject: note 27822 deleted from function.ldap-sort by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167577@lists.php.net to get a copy of this message
Note Submitter: rieflin at tdontspam dot salem dot k12 dot va dot us ---- The note from Sean on 14-Nov-2002 was of great help to me but I had to change one line for it to work. In the example below, change the line ... ldap_sort = ($ldap_connection,$search_return,"givenname"); to ldap_sort ($ldap_connection,$search_return,"givenname"); and everything should work fine. Sean's code................. The following is a working example of how to use the ldap_sort function ... $search_return = ldap_search($ldap_connection,$ldap_base,$search_filter); ldap_sort = ($ldap_connection,$search_return,"givenname"); $entries = ldap_get_entries($ldap_connection,$search_return); This will take the returned search sort it by the "givenname" attribute. It has to be done BEFORE you call ldap_get_entries.

« previous php.notes (#167577) next »