|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-08 14:12 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
<?php $mbox = imap_open ("{server:143}", "login", "password"); echo "<p><h1>Headers in INBOX</h1>\n"; $headers = imap_sort($mbox, 'SORTDATE', '0', SE_UID);; if ($headers == false) { echo "Call failed<br>\n"; } else { while (list ($key,$val) = each ($headers)) { echo $val."<br>\n"; } } imap_close($mbox); ?> imap_sort function fails if mailbox is very huge(6000 messages) and nothing is returnd to browser so it shows "The page cannot be displayed" error! Please let me know if any help or advices available. Thanks. Elnar C Hajiev.