note 4391 deleted from function.imap-open by nlopess

From: Date: Sun, 15 Aug 2004 01:35:16 +0000
Subject: note 4391 deleted from function.imap-open by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74662@lists.php.net to get a copy of this message
Note Submitter: marc_bigler@yahoo.com ---- The use of variables with imap_open as the mailbox works with PHP3. So this is valid with PHP3: imap_open("{$server:$port}$mailbox", $user, $pass); but with PHP4 this doesn't work anymore, i think it is the two chars "{$" that gives confusion to PHP4 so you must use it this way: imap_open("{" . $server . "}" . $mailbox, $user, $pass); Another alternative would be to define the a mailbox variable before and add it to the imap_open function. Regards

« previous php.notes (#74662) next »