note 57078 added to function.imap-open
| From: | uphonesimon at gmail dot com | Date: | Thu, 22 Sep 2005 23:12:25 +0000 |
| Subject: | note 57078 added to function.imap-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95636@lists.php.net to get a copy of this message | ||
After working with this function for a while, i found this bug which is very weird.
if you build a string with format as "{xxx.xxx.xxx.xxx:143}" and use that to open imap
connection, it won't work. it will simply say unable to open connection to imap server
so this is not going to work
<?
$imap_ip="xxx.xxx.xxx.xxx";
$imap_port="143";
$imap_address="{$imap_ip:$imap_port}";
imap_open($imap_address, "testuser", "testpass");
?>
however this will work
<?
$imap_ip="xxx.xxx.xxx.xxx";
$imap_port="143";
imap_open("{" .$imap_ip .":" .$imap_port ."}", "testuser",
"testpass");
?>
----
Manual Page -- http://www.php.net/manual/en/function.imap-open.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57078
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57078&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57078&report=yes
Search -- http://master.php.net/manage/user-notes.php