|
Posted by Jeff Loiselle on 09/15/05 04:36
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!
[Back to original message]
|