ros wrote:
On 16 ÍÁÒ, 17:04, Jerry Stuckle <jstuck...@attglobal.netwrote:
>ros wrote:
>>Hi! I have a simple PHP script:
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "t...@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}
Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error:UnabletocreateselectableTCPsocket(2090 >=
1024)"
What could cause this error?
Thanks!
The first things I'd want to know are:
1. Is your imap server on the same server as your website? Some hosts
use dedicated systems for mail.
2. If it is on the same system, is your imap server using port 993?
If I use mail.domain.com as server address, I can connect to port 993
using this script both from remote and from local pc.
$fp = fsockopen("mail.domain.com", 993, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
echo "ok";
fclose($fp);
}
(Top posting fixed)
First of all, please don't use domain.com - it's owned by someone.
example.com is explicitly reserved for examples like this.
Next - it mail.example.com the same server? Many ISP's use a different
mail host than the web server for various reasons. You need to ensure
you're connecting to the mail host.
And if it is the same server, does the host have a firewall preventing
you from accessing port 993 from the local host?
P.S. Please don't top post. Thanks.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================