i am trying to do the whole web mail thing, (accessing pop3 with imap functions), and since i have never done this, i dont know where to begin. actually, i know where to begin, but the problem is the middle.
heres my code:
$MailServer = "{mail.xxx.com/pop3:110}INBOX";
$Username = "suckit";
$Password = "lickit";
$mboxStream = imap_open( $MailServer, $Username, $Password);
$folders = imap_listmailbox ($mbox, $MailServer, "*");
if ($folders == false) {
echo "Call failed\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."\n";
}
}
$headers = imap_headers($mbox);
if ($headers == false) {
echo "Call failed\n";
} else {
while (list ($key,$val) = each ($headers)) {
echo $val."\n";
}
}
imap_close($mbox);
?>
it gives me this:
Warning: Unable to find stream pointer in /var/www/html/newshit.php on line 10
Call failed
does anyone know why, and what the answer might be to fixing this??
thanks