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
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
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
3 matches
Mail list logo