Connecting Tech Pros Worldwide Help | Site Map

Error: Unable to create selectable TCP socket

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 15th, 2008, 07:15 AM
ros
Guest
 
Posts: n/a
Default Error: Unable to create selectable TCP socket

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!

  #2  
Old March 16th, 2008, 02:05 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default 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.
jstucklex@attglobal.net
==================

  #3  
Old March 18th, 2008, 02:45 PM
ros
Guest
 
Posts: n/a
Default 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
==================
  #4  
Old March 18th, 2008, 05:15 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default 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.
jstucklex@attglobal.net
==================

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.