[horde] IMAP-SSL with PHP 4.1.2 doesnt-work (IMP)
"Bürkle, Roman"
buerkle at stimme.net
Wed Oct 15 06:49:57 PDT 2003
Hi @ll,
when i use the Debian stable PHP4.1.2, the imap-ssl -connection doesn't
work. When i try it from an Debian testing PHP4.3.3 it works fine! So i
don't get IMP running :-(
Here's my testing script:
--- snip ----
<h1>PHP IMAP Support Test</h1>
<?php
$server = 'localhost';
$protocol = 'imap/ssl/novalidate-cert';
$port = '993';
$user = 'myuseraccount';
$passwd = 'mypass';
$mbname = '{' . $server . ':' . $port . '/' . $protocol . '}INBOX';
echo 'server="', $server, '" user="', $user, '" mailbox="', $mbname, '"<br
/>';
$mbox = imap_open($mbname, $user, $passwd);
if ($mbox) {
$minfo = imap_mailboxmsginfo($mbox);
if ($minfo) {
echo 'INBOX has ', $minfo->Nmsgs, ' messages (' .
$minfo->Unread, ' new ', $minfo->Recent, ' recent)';
} else {
echo '<pre>'; var_dump(imap_errors()); echo '</pre>';
}
imap_close($mbox);
} else {
echo '<pre>'; var_dump(imap_errors()); echo '</pre>';
}
?>
--- snip ----
So is this a known PHP malfunction in 4.1.2 and is there any other solution
than installing 4.3.3?
Thanks in advance
Roman Bürkle
More information about the horde
mailing list