help me : Couldn't open stream

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpmitesh
Forum Newbie
Posts: 2
Joined: Mon Jul 07, 2003 6:53 am
Location: India
Contact:

help me : Couldn't open stream

Post 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
Post Reply