note 73183 deleted from function.imap-open by didou

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: danwatts at gmNOSPAMail dot com 

----

Be careful about how you specify the string 
(at least on PHP5). It looks like you need to 
break out of the "string" if you specify the 
server name within a variable.

<?php
//DOES NOT WORK:

imap_open("{$server:143/novalidate-cert}".
$mailbox,$username,$password)

//DOES WORK:

imap_open("{".$server.":143/novalidate-cert}".
$mailbox,$username,$password)

//ALSO WORKS:

imap_open("{imap.servername.com:143/novalidate-cert}".
$mailbox,$username,$password)

?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.