note 64245 added to function.imap-open

From: Date: Mon, 10 Apr 2006 23:04:49 +0000
Subject: note 64245 added to function.imap-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-107732@lists.php.net to get a copy of this message
I could successfully connect to the IMAP server using imap_open() but then had problems using functions like imap_check. The problem was the die command used in the imap_check example: <?php $mbox = imap_open ("{your.imap.host:143}INBOX", "username", "password") || die ("can't connect: " . imap_last_error()); ?> When doing it this way it worked perfectly: <?php $mbox = imap_open ("{your.imap.host:143}INBOX", "username", "password"); if(!$mbox){ echo "can't connect: " . imap_last_error(); exit(); } ?> ---- Server IP: 217.13.201.10 Probable Submitter: 80.135.183.52 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imap-open.php Edit -- http://master.php.net/note/edit/64245 Del: integrated -- http://master.php.net/note/delete/64245/integrated Del: useless -- http://master.php.net/note/delete/64245/useless Del: bad code -- http://master.php.net/note/delete/64245/bad+code Del: spam -- http://master.php.net/note/delete/64245/spam Del: non-english -- http://master.php.net/note/delete/64245/non-english Del: in docs -- http://master.php.net/note/delete/64245/in+docs Del: other reasons-- http://master.php.net/note/delete/64245 Reject -- http://master.php.net/note/reject/64245 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107732) next »