Re: add more features on working php?
| From: | Bing Du | Date: | Fri, 18 Nov 2005 18:00:15 +0000 |
| Subject: | Re: add more features on working php? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226067@lists.php.net to get a copy of this message | ||
David Grant wrote:
Bing, Have you checked for a php-ldap RPM? Cheers, David Grant Bing Du wrote: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... BingHello, 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