Re: PHP/LDAP Setup Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Crone, James wrote:
I need to add LDAP support to my install of PHP.  I had my sysadmin
download OpenLDAP and install the libraries.
This isn't correct way. You need these libraries but they are not enough.
[snip] I've
been told to use the dl() function
Read carefully. http://php.net/dl says
dl -- Loads a PHP extension at runtime

Note *PHP extension*. You cannot use LDAP libraries directly.
	PHP Warning:  dl(): Invalid library (maybe not a PHP library)
'libldap.so' in .....

What am I doing wrong?  Thanks in advance.
You are loading ldap library directly which provide C interface to ldap functions. You need PHP interface (which is what provided by PHP extension). It need to be compiled in PHP.

Read more about extensions:
http://www.zend.com/php/internals/extension-writing1.php#Heading2

--
Sameer N. Ingole
Blog: http://weblogic.noroot.org/
---
Better to light one candle than to curse the darkness.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux