Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Error: Unable to create selectable TCP socket

Question posted by: ros (Guest) on March 15th, 2008 07:15 AM
Hi! I have a simple PHP script:

$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "test@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!
Jerry Stuckle's Avatar
Jerry Stuckle
Guest
n/a Posts
March 16th, 2008
02:05 PM
#2

Re: Error: Unable to create selectable TCP socket
ros wrote:
Quote:
Hi! I have a simple PHP script:
>
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "test@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.
Join Bytes!
==================


ros's Avatar
ros
Guest
n/a Posts
March 18th, 2008
02:45 PM
#3

Re: Error: Unable to create selectable TCP socket
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:
Quote:
ros wrote:
Quote:
Hi! I have a simple PHP script:

>
Quote:
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "t...@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}

>
Quote:
Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error:UnabletocreateselectableTCPsocket(2090 >=
1024)"

>
Quote:
What could cause this error?

>
Quote:
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
==================



Jerry Stuckle's Avatar
Jerry Stuckle
Guest
n/a Posts
March 18th, 2008
05:15 PM
#4

Re: Error: Unable to create selectable TCP socket
ros wrote:
Quote:
On 16 อมา, 17:04, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
>ros wrote:
Quote:
>>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.
Join Bytes!
==================


 
Not the answer you were looking for? Post your question . . .
190,473 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors