I'm using imap_open to open a POP3 mailbox, and it is consitently taking 25 - 30 seconds to open the mailbox. I have tried to access a difference mailbox on a different server as well and encountered similar results.
I also telneted to the mailserver (from the server where I'm running PHP) over port 110 and logged in in a matter of seconds.
I'm running PHP4 on Windows 2000 server with the ISAPI dll for IIS.
Here's what my code looks like this:
$t1 = mktime();
$mbox = imap_open ("{"."$host"."/pop3:110}INBOX", "$user", "$pass");
$t2 = mktime();
print("time to open mailbox stream in seconds: ".$t2);
Thanks in advance! -mike