note 30247 added to function.imap-mailboxmsginfo

From: Date: Wed, 12 Mar 2003 07:55:17 +0000
Subject: note 30247 added to function.imap-mailboxmsginfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-45134@lists.php.net to get a copy of this message
The runtime difference between imap_status and imap_mailboxmsginfo is very significant on large mailboxes <?php /** opening connection to a * mailbox with 3987 messages * and retrive status information **/ $mbox = imap_open ('{mail.somwhere.com:110}', $user, $password); $mbox_info = imap_status($mbox, '{mail.somwhere.com:110}INBOX', SA_MESSAGES); /** took 11.05 seconds **/ $mbox_info = imap_mailboxmsginfo($mbox); /** took 6 minutes 5.382 seconds **/ ?> -- http://www.php.net/manual/en/function.imap-mailboxmsginfo.php http://master.php.net/manage/user-notes.php?action=edit+30247 http://master.php.net/manage/user-notes.php?action=delete+30247 http://master.php.net/manage/user-notes.php?action=reject+30247

« previous php.notes (#45134) next »