Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: imap_last_error - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imap_list" width="11" height="7"/> <imap_headers
Last updated: Mon, 05 Feb 2007

view this page in

imap_last_error

(PHP 4, PHP 5)

imap_last_error — ページリクエスト時に生じた直近の IMAP エラーを返す

説明

string imap_last_error ( void )

現在のページに生じた直近の IMAP エラーメッセージの全文を返します。 エラースタックは変更されません。 imap_last_error() を続けてコールした際、 コール間に新規エラーが生じていない場合は同じエラーが返されます。

返り値

現在のページに生じた直近の IMAP エラーメッセージの全文を返します。 エラーメッセージが存在しない場合は FALSE を返します。

参考

imap_errors()



add a note add a note User Contributed Notes
imap_last_error
josh at snaphat dot com
30-Nov-2003 03:06
A simple login error test:
<?php
$mbox
= imap_open ("{www.yoursite.com:143}INBOX", "$username", "$password");
if (
$mbox === false ) {
       exit (
"Can't connect: " . imap_last_error() ."\n");
}
else
{
       echo
"Logined:";
      
//do stuff
}
?>

imap_list" width="11" height="7"/> <imap_headers
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites