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

search for in the

imap_list> <imap_headers
Last updated: Fri, 13 Nov 2009

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() - 発生したすべての IMAP エラーを返す



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> <imap_headers
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites