Hey guys,
I'm working on an LDAP class for my site. For debugging purposes, I check the return value of every function, and do an if ( $val == false ) type deal, then I can bail out of the function and print a message indicating where the code went awry. There are a fair number of these checks. Would I be safe leaving them in there? Or should I use a define() for a DEBUG, a la C, and then only do the error checking then? So it can be enabled when one thinks there might be a problem.
Thanks,
--Kevin