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

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

Sponsor our Newsletter | Privacy Policy | Terms of Service