Re: [PHP] LDAP sorting

2001-11-30 Thread Stig Venaas
The LDAP sorting code I posted a couple of days ago was a bit lacking. Here's a function that should work: function myldap_sort($data, $attr) { // -1 because of the count entry echo "#", $n = count($data) - 1; for ($i=0; $i<$n; $i++) { $a[$i]=$data[$i][$attr][0]; } aso

Re: [PHP] LDAP sorting

2001-11-28 Thread Stig Venaas
On Wed, Nov 28, 2001 at 03:08:52PM +0930, [EMAIL PROTECTED] wrote: > Hi All- > > Can anyone tell me if PHP's LDAP functions support "server side sorting of > search results" as defined in this RFC: > > http://www.ietf.org/rfc/rfc2891.txt Not currently, maybe it will... Depends on how many want

[PHP] LDAP sorting

2001-11-27 Thread Adam . Whitehead
Hi All- Can anyone tell me if PHP's LDAP functions support "server side sorting of search results" as defined in this RFC: http://www.ietf.org/rfc/rfc2891.txt Sorting results from LDAP searches in PHP is a pain because of the structure of the result array. Alternatively if anyone has a nice fu