Page 1 of 1

help me : Couldn't open stream

Posted: Mon Jul 07, 2003 6:53 am
by phpmitesh
hello,
i m using Rat Hate Linux 7.3. and imap servicing is running. i wrote following code..whenver i run it i got "Warning: Couldn't open stream {localhost:110/pop3}INBOX in /var/www/html/first.php on line 10"

<?php


$email_server ="localhost";
$folder = "INBOX";
$name = "root";
$passwd ="testing";


$mbox = imap_open("{localhost:143}INBOX",$name,$passwd);
if (!$mbox) {
$errors=imap_errors();
for ( $i=0;$i<count($errors);$i++)
echo "$errors[$i]<BR>\n";
}
?>
can u give any idea ....
thanks in advance