imap_open problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

imap_open problem

Post 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 ?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
Post Reply