note 20209 added to function.imap-check

From: Date: Tue, 26 Mar 2002 16:49:44 +0000
Subject: note 20209 added to function.imap-check
Groups: php.notes 
Request: Send a blank email to php-notes+get-28236@lists.php.net to get a copy of this message
$mbox = imap_open ("{your.imap.host}INBOX", "username", "password") || die ("can't connect: " . imap_last_error()); $check = imap_check ($mbox); if($check) { print "Date: " . $check->Date . "<br>\n" ; print "Driver: " . $check->Driver . "<br>\n" ; print "Mailbox: " . $check->Mailbox . "<br>\n" ; print "Messages: " . $check->Nmsgs . "<br>\n" ; print "Recent: " . $check->Recent . "<br>\n" ; } else { print "imap_check() failed: " . imap_last_error() . "<br>\n"; } imap_close ($mbox); -- http://www.php.net/manual/en/function.imap-check.php http://master.php.net/manage/user-notes.php?action=edit+20209 http://master.php.net/manage/user-notes.php?action=delete+20209 http://master.php.net/manage/user-notes.php?action=reject+20209

« previous php.notes (#28236) next »