Hello,
I encountered very strange imap problem
When i run the php file (with imap command in the console), it is
successful to extract data from my email account. However....
In netscape, a popup box show up
The document contained no data.
Try again later, or contact the server's administrator.
In IE
And the error page is displayed and say can't display the page
If not run the comman, no this problem happen to read web page in my site.
My code is like that
<html>
<head>
</head>
<body bgcolor="White">
<?php
$inbox = imap_open("{".gethostbyname"domain.com"). "/pop3:110}", "username", "password") or die (imap_last_error());
$headers=imap_headers($inbox);
for($x=1; $x < count($headers); $x++) {
$idx=($x-1);
echo "<a href=\"view.php3?num=$x\">$headers[$idx]</a><br>";
}
?>
</body>
</html>