Hello,
Currently, I'm working on PHP web application on wamp environment.
I'm quite new with ldap and right now, I have a pretty simple problem about it.
After I enabled LDAP support in PHP. I have tried to call ldap function with the following code:
<?php
// LDAP variables
$ldaphost = "ldap.example.com"; // your ldap servers
$ldapport = 389; // your ldap server's port number
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost, $ldapport)
or die("Could not connect to $ldaphost");
echo $ldapconn;
?>
The problem is when I run this file, I've got no result. I can't see whether it's failed or not and after function "ldap_connect", whatever I tried to put it there. It doesn't work, even simple command e.g. echo "hello world";
What should I do?
Please Suggest.