note 36555 deleted from function.imap-open by vincent

From: Date: Tue, 14 Oct 2003 21:11:01 +0000
Subject: note 36555 deleted from function.imap-open by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58590@lists.php.net to get a copy of this message
Note Submitter: doug@weblogimages.com ---- It's nice to trap an error with an OR after calling an imap_open() LIKE: $mbox = imap_open ("{localhost:143/imap/notls}INBOX", "mailuser", "somepassword") || die("connection failed: ".imap_last_error()); BUT! Beware, using the || operator puts Boolean in your connection string, so change that || to OR. Or else you're going to get a "not a valid imap resource" warning later in the script. (tip from rasmus on a php mailing archieve)

« previous php.notes (#58590) next »