Page 1 of 1

dap_search() sizelimit

Posted: Wed Aug 02, 2006 4:50 pm
by rcmn
i read the doc http://www.php.net/ldap_search. But i can't find ant exemple of how to use the "sizelimit" parameter...

Code: Select all

$lookupad= "cn=comp-*";
$sizelimite=????
$rs=ldap_search($ldap_conn,$user_dir,$lookupad,???sizelimite???)

Posted: Wed Aug 02, 2006 5:10 pm
by nickk
Uhh... right from the documentation:
With the sixth parameter sizelimit it is possible to limit the count of entries fetched. Setting this to 0 means no limit. NOTE: This parameter can NOT override server-side preset sizelimit. You can set it lower though.
What isnt there to understand?

Posted: Wed Aug 02, 2006 10:19 pm
by rcmn
i know i read the doc.but it seems that i can't write properly.
so with the lines i gave u i want to set sizelimite to 0.I tried differente way but nothing work.
Can u write an exemple for me,Thx