Question:How do you connect to an LDAP server?
Answer The ldap_connect() function establishes a connection to an LDAP server identified by a specific host name and optionally a port number.
Prototype:
resource ldap_connect([stiring hostname[, int port]])
Example:
<?php
$host="ldap.wjgilmore.com";
$post="389";
$connection=ldap_connect($host,$port) ro die("Can't establish LDAP connection");
?>
+ Report
How do you connect to an LDAP server?