Wie zeigt mir beim Aufrufen dieses Scripts:
$mbox = imap_open ("{".$POP3."/pop3:110}",$USER,$PASS)
|| die ("can't connect: " . imap_last_error());
$check = imap_mailboxmsginfo ($mbox);
print "Messages before delete: " . $check->Nmsgs . "<br>\n" ;
imap_delete ($mbox, 1);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after delete: " . $check->Nmsgs . "<br>\n" ;
imap_expunge ($mbox);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after expunge: " . $check->Nmsgs . "<br>\n" ;
imap_close ($mbox);
der Browser diesen Fehler an:
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blablaon line 18
Messages before delete:
Warning: imap_delete(): supplied argument is not a valid imap resource in /home/blabla on line 20
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blabla on line 21
Messages after delete:
Warning: imap_expunge(): supplied argument is not a valid imap resource in /home/blabla on line 23
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blabla on line 24
Messages after expunge:
Warning: imap_close(): supplied argument is not a valid imap resource in /home/blabla on line 26
???
$mbox = imap_open ("{".$POP3."/pop3:110}",$USER,$PASS)
|| die ("can't connect: " . imap_last_error());
$check = imap_mailboxmsginfo ($mbox);
print "Messages before delete: " . $check->Nmsgs . "<br>\n" ;
imap_delete ($mbox, 1);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after delete: " . $check->Nmsgs . "<br>\n" ;
imap_expunge ($mbox);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after expunge: " . $check->Nmsgs . "<br>\n" ;
imap_close ($mbox);
der Browser diesen Fehler an:
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blablaon line 18
Messages before delete:
Warning: imap_delete(): supplied argument is not a valid imap resource in /home/blabla on line 20
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blabla on line 21
Messages after delete:
Warning: imap_expunge(): supplied argument is not a valid imap resource in /home/blabla on line 23
Warning: imap_mailboxmsginfo(): supplied argument is not a valid imap resource in /home/blabla on line 24
Messages after expunge:
Warning: imap_close(): supplied argument is not a valid imap resource in /home/blabla on line 26
???
Kommentar