Menu

Couldn't open stream

2004-11-01
2013-04-08
  • Nobody/Anonymous

    Hi.

    I have set up wapreader on a server running debian and no matter what I do I can't get it to work.

    I can connect to the page well enough in both wap and mode=html, but when I try to log in i get the error:

    Warning: Couldn't open stream {blablabla:143/pop3/notls/novalidate-cert} in /var/www/blablabla/wapreader.php on line 138

    line 138 in my wapreader.php is:
    if( $box=imap_open($connect, $login, $password) ) {
    and connect is defined as:
    $connect="{".$host.($protocol=="pop3"?":110/pop3/notls/novalidate-cert":":143/notls/novalidate-cert")."}";

    I've tried connecting to different POP3 accounts i've tried IMAP, I've tried with and without /notls and/or /novalidate-cert and Nothing has made a difference.

    Does anyone have any idea what is wrong and how i can get it to work?

    Best regards
    Niels

     
    • Alexander Kulikov

      try to connect to your imap/pop3 mail server from web server shell like:

      telnet blablabla 143

      or

      telnet blablabla 110

      to check if it possible at all.

       
    • Nobody/Anonymous

      No problems doing that:

      bosworth@jeppe:~$ telnet mail.soranerneshus.dk 143
      Trying 192.168.0.202...
      Connected to jeppe.soranerneshus.dk.
      Escape character is '^]'.
      * OK [CAPABILITY IMAP4REV1 X-NETSCAPE LOGIN-REFERRALS AUTH=LOGIN] jeppe.soranerneshus.dk IMAP4rev1 2001.315 at Tue, 2 Nov 2004 15:24:54 +0100 (CET)

      bosworth@jeppe:~$ telnet mail.soranerneshus.dk 110
      Trying 192.168.0.202...
      Connected to jeppe.soranerneshus.dk.
      Escape character is '^]'.
      +OK Qpopper (version 4.0.4) at jeppe.soranerneshus.dk starting.  <20409.1099405541@jeppe.soranerneshus.dk>

       
    • Alexander Kulikov

      hmm ..
      it must work ..

      try to see imap-server logs for details.

       

Log in to post a comment.