PHP & LDAP
| From: | Phil Huynh | Date: | Tue, 13 Feb 2001 06:13:52 +0000 |
| Subject: | PHP & LDAP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2040@lists.php.net to get a copy of this message | ||
Hi,
I have download the ldap_client (ldap_V3.3) from University of
Michigan.
unpack the tar file, change the installation path in Make-common file.
run make and make install.
then I configure the PHP
./configure -with-apache=../apache_1.3 -with-ldap=/usr/local/ldap
-enable-track.
the script file:
<?
echo "connecting ";
$ds=ldap_connect("directory.monash.edu.au");
if ($ds)
{ $r= ldap_bind($ds)
.....
}
else echo " Unable to connect LDAP server";
?>
then I got the following error message:
fatal error : undefined function ldap_connect()
Can anyone tell me what should I do to correct it.
I would like some help, thank in advance.