note 4391 modified in imap_open by ronabop

From: Date: Wed, 04 Oct 2000 15:31:08 +0000
Subject: note 4391 modified in imap_open by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6063@lists.php.net to get a copy of this message
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); An other alternative would be to define the a mailbox variable before and add it to the imap_open function. Regards http://www.php.net/manual/function.imap-open.php

« previous php.notes (#6063) next »