CODE:
<?php
$mbox = imap_open ("{localhost/pop3:110}INBOX", "username", "password");
echo $mbox;
?>
竟然出現錯誤訊息...Warning: Couldn't open stream {localhost/pop3:110}INBOX in /var/www/html/test.php on line 3
找了好久...一度還以為是 Redhat 7.3 的關係...要不然就是 sendmail 或 imap 有問題...可是看起來又不像...最後終於被我找到解決的方法...你可以照這樣改看看..
CODE:
<?php
$mbox = imap_open ("{localhost:110/pop3/notls}INBOX", "username", "password");
echo $mbox;
?>
執行成功的結果如下...Resource id #1
看到後...真的超感動的...要不然可能就沒完沒了啦...哈哈...