[SOLVED] IMAP Notices spamming |
[eluser]Morty[/eluser]
Hi there ! I am currently debugging an IMAP connection process. In order not to have any "notice" or any errors during execution I am tackling any issue one might encounter. Code: function test_imap($address, $password, $type) Code: Could not connect Thanks in advance, Morty Edit: In fact, there are a lot of information that are given by imap_open as notices which end up being errors on your page. They are given back even after a die() statement. Why? PHP maintains a collection of all IMAP errors and if it is not emptied, it shows at the end of your script. In order to get these errors and empty this collection, one should use the imap_errors() function. Problem solved.
[eluser]sophistry[/eluser]
that information and more is bundled into my imap_pop class at the wiki. |
Welcome Guest, Not a member yet? Register Sign In |