Did you take my last answer and just copy it ?
If so - you would need to change the Protocol to POP3...
IMAP = port 143
POP3 = port 110
Check if it is an SSL connection to the server as well, cos that is a different port again (993 I think) - plus you need to state that in the script...
$mbox = imap_open ("{localhost:993/POP3/ssl}INBOX", "user_id", "password");
Something like that anyway...