469,609 Members | 1,795 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Error: Unable to create selectable TCP socket

ros
Hi! I have a simple PHP script:

$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "te**@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: Unable to create selectable TCP socket (2090 >=
1024)"

What could cause this error?

Thanks!
Mar 15 '08 #1
3 3983
ros wrote:
Hi! I have a simple PHP script:

$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "te**@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: Unable to create selectable TCP socket (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?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Mar 16 '08 #2
ros
If I use mail.domain.com as server adress, 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);
}

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?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Mar 18 '08 #3
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
==================

Mar 18 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by kmacintyre | last post: by
7 posts views Thread by | last post: by
1 post views Thread by sgawas01 | last post: by
reply views Thread by =?Utf-8?B?T2xpdmllciBHSUw=?= | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.