I'm trying to get the IMAP functions to work with a buggy IMAP server (GroupWise Internat Agent). There are several IMAP functions where it has a problem (imap_header, for example). If I try using one of these functions, I get an "empty document" message from the browser - so the error is blocking all PHP output (possibly just crashing PHP, I suppose). This is hugely frustrating as I can't get any feedback on what the error might be.
Can anybody suggest how I might get some feedback on this problem from PHP?