Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / imap_check
imap_check

imap_check

(PHP 3, PHP 4 )

imap_check -- Prüft den Status des aktuelle Postfachs

Beschreibung

object imap_check ( int imap_stream)

Die imap_check() Funktion prüft den Status des aktuellen Postfach und liefert die entsprechenden Felder in einem Objekt mit folgenden Attributen zurück:

  • Date - Datum der letzten Änderung des Postfach-Inhalts

  • Driver - Zugriffsprotokoll: POP, IMAP, NNTP

  • Mailbox - Name des Postfachs

  • Nmsgs - Anzahl der Nachrichten im Postfach

  • Recent - Anzahl der neuen Nachrichten im Postfach

Beispiel 1. imap_check() Beispiel

$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);


© 1998-2007 Gold Vision Communications All Rights Reserved.