[PHP] add more features on working php?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] add more features on working php?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] add more features on working php?
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 h3LDAP query test/h3Connecting ... connect result is Resource id #1br /Binding ...LDAP bind successful...Searching for (sAMAccountName=user) ...Search result is Resource id #2br /Number of entires returned is 0br /Getting entries ...pData for 0 items returned:pClosing 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] add more features on working php?
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 h3LDAP query test/h3Connecting ... connect result is Resource id #1br /Binding ...LDAP bind successful...Searching for (sAMAccountName=user) ...Search result is Resource id #2br /Number of entires returned is 0br /Getting entries ...pData for 0 items returned:pClosing 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] add more features on working php?
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 h3LDAP query test/h3Connecting ... connect result is Resource id #1br /Binding ...LDAP bind successful...Searching for (sAMAccountName=user) ...Search result is Resource id #2br /Number of entires returned is 0br /Getting entries ...pData for 0 items returned:pClosing 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