Hi Friends,
I am working with php4 and mysql 3.23 and imap system. I wrote the follow script:
<?
$USERNAME = "test";
$PASSWORD = "test1";
$LINK = imap_open("{localhost:143}INBOX", $USERNAME, $PASSWORD);
$HEADERS = imap_headers($LINK);
for ($x=1; $x <= count(HEADERS); $x++) {
$idx = $x-1;
echo "<a href=\"view.php?num=$x\">$HEADERS[$idx]</a><br>";
}
?>
But When I am executing it I receive the follow error:
Warning: Couldn't open stream {localhost:143}INBOX in /home/httpd/html/webagro/teste/list.php on line 6
Warning: Unable to find stream pointer in /home/httpd/html/webagro/teste/list.php on line 7
Can anybody tell what I am doing wrong??
Thanx
Fabricio C. Greco