Re: add more features on working php?

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

 



Bing Du wrote:

Bing Du wrote:

David Grant wrote:

Bing,

Have you checked for a php-ldap RPM?

Cheers,

David Grant

Bing Du wrote:

Hello,

PHP has already been installed through RPM. phpinfo() shows
'--with-ldap'.  That's the only information about ldap.  I think there
should be more than that if php were installed with ldap support
properly. So what should I check and get ldap support added? Do I have
to download PHP source and go through configure, make and make install?

Thanks in advance,

Bing


Thanks much for the hints. I've just installed php-ldap. Now running the script from the command like works.

% php test.php

Content-type: text/html
X-Powered-By: PHP/4.3.2

<h3>LDAP query test</h3>Connecting ...
connect result is Resource id #1<br />Binding ...LDAP bind successful...Searching for (sAMAccountName=user) ...Search result is Resource id #2<br />Number of entires returned is 0<br />Getting entries ...<p>Data for 0 items returned:<p>Closing connection

But in a web browser, it shows:

LDAP query test
Connecting ...
Fatal error: Call to undefined function: ldap_connect() in /home/user/public_html/test.php on line 17

hmmm...

Bing


Forgot to mention, no change about ldap on phpinfo() after php-ldap was installed. So it still just has '--with-ldap=shared' only.

Bing

Never mind.  Restarting the web server fixed the problem.

Bing

--
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