Imap codes in PHP --- Dont know what I am doing wrong

I am trying to configue my admin panel to display messages from an email account’s inbox. I havetried the following but nothing seems to work. Can you help? please tell me what it is I am doing wrong.

this is the code is used
$MAILSERVER="{localhost:110/pop3}INBOX";
$PHP_AUTH_USER=" “;
$PHP_AUTH_PW=” ";

$link=imap_open($MAILSERVER,$PHP_AUTH_USER,$PHP_AUTH_PW);
$headers=imap_headers($link);
echo "number of email items " . count($headers);

this is the error I get when I try to connect
(Warning: imap_open() [function.imap-open]: Couldn’t open stream
{localhost:110/pop3})

Sponsor our Newsletter | Privacy Policy | Terms of Service