note 73183 added to function.imap-open

From: Date: Mon, 12 Feb 2007 16:39:52 +0000
Subject: note 73183 added to function.imap-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-123283@lists.php.net to get a copy of this message
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) ?> ---- Server IP: 194.145.210.3 Probable Submitter: 213.162.102.18 ---- Manual Page -- http://www.php.net/manual/en/function.imap-open.php Edit -- https://master.php.net/note/edit/73183 Del: integrated -- https://master.php.net/note/delete/73183/integrated Del: useless -- https://master.php.net/note/delete/73183/useless Del: bad code -- https://master.php.net/note/delete/73183/bad+code Del: spam -- https://master.php.net/note/delete/73183/spam Del: non-english -- https://master.php.net/note/delete/73183/non-english Del: in docs -- https://master.php.net/note/delete/73183/in+docs Del: other reasons-- https://master.php.net/note/delete/73183 Reject -- https://master.php.net/note/reject/73183 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123283) next »