Hello,

According to the PHP documentation for the ldap library, ldap_add() returns a boolean value. However, if there is an error, it immediately throws a Warning to the browser with display_errors on. I would like to do this:

$result = ldap_add($ldap, $dn, $array)
if (!$result) {
  trigger_error('some message');
}

I could suppress it with @, but this will never give result a value.

Can someone please shed some light on this for me.

Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to