Get random entries from Ldap server ..
| From: | Elier | Date: | Sat, 16 Jun 2007 15:47:34 +0000 |
| Subject: | Get random entries from Ldap server .. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-43697@lists.php.net to get a copy of this message | ||
Get random entries from Ldap server ..
Hi, I'm interesting to get random entries from ldap server ...
but any of ldap_ fuctions do this ...
I need something like this:
SELECT * FROM table ORDER BY RAND() LIMIT 10;
I'm thinking to work with the resource id
$resource=ldap_search($conexion_ldap, $dn, $filtro, $solonecesito);
maybe I need implement a new function: ldap_get_randentries($conexion_ldap,
$resource,
$count), but first I want to know what you think ..
Best regards, Elier