You are here: ldap_add errors « PHP « IT news, forums, messages
ldap_add errors

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация