开发者

php imap_search since problem

I am using the following code to fetch all mails since 1 day less -

$yesterday = date("Y-m-d", strtotime ("-1 days"));
$searc开发者_如何学PythonhQuery = 'SINCE "'.$yesterday.'"';

if($this->open($folder)) {
    $imap_search = imap_search($this->_imap, $searchQuery);
}

This works fine on my dev windows machine but when i put it on the test production server it doesn't work. I have even tried ALL as the search parameter but it does not seem to fetch anything. The connection to the mail account (the $this->_imap object) seems to be fine.

Any ideas?


Since noone else answered, I will put it as a wiki for whoever comes in after me looking for the same issue. The problem I faced was with the php version used on the server (5.2.1). Seems like it has a bug which causes it to segfault. Upgrading the php version fixed the issue for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜