So I am getting this warning and I cannot figure out what is wrong with the code. The section of code that its pointing to is shown below.
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
$adconn = ldap_connect("ldap://earth.matcor-matsu.com") or die("Couldn't connect to AD!");
//------1
if($adconn){
echo fwrite($log,'$adconn : ' . $adconn. "
");
echo fwrite($log,"
");
}else{
echo 'Unable to connect to LDAP server';
}