note 103875 rejected from function.ldap-error by danbrown

From: Date: Wed, 11 May 2011 15:37:18 +0000
Subject: note 103875 rejected from function.ldap-error by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179611@lists.php.net to get a copy of this message
Note Submitter: shyjuk at live dot com ---- Find below the code to connect to an ldap server. The script generates the same ldap_errno when I change the $ldapserver to an non existing host.. Please help. <?php $ldapserver = '192.168.20.199'; $ldapuser = 'shyju@epillars.local'; $ldappass = '123'; $ldaptree = "CN=Users,DC=epillars,DC=local"; $ldapconn = ldap_connect($ldapserver,389) echo ldap_errno($ldapconn); ?>

« previous php.notes (#179611) next »