ldap_add errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux