imap streaming error identification...
I have make a few test using this script
<?php
$stream = @imap_open("{localhost:143}", "chira", abc);
if (!$stream) {
echo "Could not log you onto the system!";
} else {
echo "success";
imap_close($stream);
}
?>
the first time, i use the wrong password, and i got
this error...
Could not log you onto the system!
Notice: (null)(): LOGIN failed (errflg=1) in Unknown on line 0
Notice: (null)(): LOGIN failed (errflg=1) in Unknown on line 0
Notice: (null)(): LOGIN failed (errflg=1) in Unknown on line 0
Notice: (null)(): Too many login failures (errflg=2) in Unknown on line 0
and the second time, i used the wrong address, to return this address
Could not log you onto the system!
Notice: (null)(): Host not found (#11001): localhos (errflg=2) in Unknown on line 0
the third time, i changed the port number to get this error
Could not log you onto the system!
Notice: (null)(): Can't connect to vandoria-vc-a,14: Refused (10061) (errflg=2) in Unknown on line 0
how in the world can i work around with the error, so i make
a pre-formatted error page, instead of using the internal
error defined by php?
in my idea is, find what the exactly error is, and forward
user to the error page (by passing some pointer argument)
|