re : ldap problem

From: Date: Fri, 13 Jun 2003 08:43:56 +0000
Subject: re : ldap problem
Groups: php.general 
Request: Send a blank email to php-general+get-151339@lists.php.net to get a copy of this message
Hi The proto type is not correct. array ldap_get_values(link_identifier , result_entry_identifier, string attribute); ^ try this 1) connect 2) bind 3) search 4) get_entries // this the step you are missing 5) get_values regards CVR Can anyone tell me what is wrong with this simple > code? It errors with > the ldap_get_values and says: "supplied resource is > not a valid ldap > result entry resource" > > I am very new at PHP LDAP so pardon my error... > > <? > //include "inc/connect.inc.php"; > $ds = ldap_connect("localhost"); > $base = "ou=people,dc=cwalk,dc=org"; > $filter = "(&(givenname=$givenName*)(sn=$sn*))"; > $search = ldap_list($ds, $base, $filter); > $mail = "mail"; > $attrs = ldap_get_values($ds, $search, $mail); > ?> > > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com

« previous php.general (#151339) next »