dscc90150010 2015-11-05 01:50
浏览 96

IMAP需要15秒才能加载

On my local machine using XAMPP, I'm opening an office365 account via imap_open, displaying the number of messages in the inbox and then closing IMAP.

$hostname = "{outlook.office365.com:993/imap/ssl/novalidate-cert}INBOX";
$imap = imap_open($hostname, 'email', 'password');
$message_count = imap_num_msg($imap);
echo $message_count;
imap_close($imap);

Every time I run this script it takes a whopping 15 seconds to complete. When I upload it to my hosting at GoDaddy, it takes about 12 seconds which is still an insanely huge amount of time.

I've tried substituting the "outlook.office365" domain with their IP address but somehow that just makes things even slower.

Is there any way I can speed this up?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 高德地图点聚合中Marker的位置无法实时更新
    • ¥15 DIFY API Endpoint 问题。
    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办