On 4 December 2012 19:24, Farzan Dalaee <[email protected]> wrote:
> Warning: imap_open() [function.imap-open]: Couldn't open stream
> mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6
>
> this is my code
>
> $host = 'mail.mydomain.net:143/pop3';
> $user = '[email protected]';
> $password = 'myPassword';
> $mailbox = "{$host}INBOX";
^^^^^^^
PHP interprets that as "insert $host in string" and removes the curly braces.
Try
$mailbox = "{mail.mydomain.net:143/pop3}INBOX";
Cheers,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php