Page 1 of 1

imap_open problem

Posted: Fri Nov 10, 2006 5:10 am
by miro_igov
When i try to connect to a pop3 mailbox i always receive Warning: imap_open(): Couldn't open stream {localhost:110/pop3}INBOX

I used an example from php.net site and i assume it should be working, but it just does not work on my server.

Any suggestions ?

Posted: Fri Nov 10, 2006 5:47 am
by volka
Is there a pop3 server listening on port 110?
What does

Code: Select all

<?php
$sd = fsockopen('localhost', 110, $errno, $errstr, 2.0);
echo 'sd: ', $sd, "<br />\n";
echo 'errno: ', $errno, "<br />\n";
echo 'errstr: ', $errstr, "<br />\n";
?>
print?