What are the server settings for the imap functions on webzdarma? The line below gives the listed warnings.
$mbox = imap_open("{".$servername.":110/pop3/notls}INBOX", $username, $password);
Warning: imap_open(): Couldn't open stream {webzdarma.cz:110/pop3/notls}INBOX in /3w/wz.cz/x/xxx/xxx/xxx/xxx.php on line 26
Warning: imap_check(): supplied argument is not a valid imap resource in /3w/wz.cz/x/xxx/xxx/xxx/xxx.php on line 34
Warning: imap_fetch_overview(): supplied argument is not a valid imap resource in /3w/wz.cz/x/xxx/xxx/xxx/xxx.php on line 38
Warning: imap_close(): supplied argument is not a valid imap resource in /3w/wz.cz/x/xxx/xxx/xxx/xxx.php on line 105
Info: http://nl3.php.net/manual/en/function.imap-open.php
Well, I guess you mix pop3 and imap ports.
TCP Port 110 - POP3 (Post Office Protocol version 3)
TCP Port 143 - IMAP (Internet Message Access Protocol)
First, try to modify argument "110/pop3/notls" on line 26.
Server settings at webzdarma (taken from phpinfo):
imap
IMAP c-Client Version 2000
SSL Support enabled
I modified the argument with the imap_open() examples below but I am still getting the same warnings.
<?php
// To connect to an IMAP server running on port 143 on the local machine,
// do the following:
$mbox = imap_open("{localhost:143}INBOX", "user_id", "password");
// To connect to a POP3 server on port 110 on the local server, use:
$mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
// To connect to an SSL IMAP or POP3 server, add /ssl after the protocol
// specification:
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
// To connect to an SSL IMAP or POP3 server with a self-signed certificate,
// add /ssl/novalidate-cert after the protocol specification:
$mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
// To connect to an NNTP server on port 119 on the local server, use:
$nntp = imap_open ("{localhost:119/nntp}comp.test", "", "");
// To connect to a remote server replace "localhost" with the name or the
// IP address of the server you want to connect to.
?>