Error: Unable to create selectable TCP socket

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ros

    Error: Unable to create selectable TCP socket

    Hi! I have a simple PHP script:

    $mbox = imap_open ("{localhost:99 3/imap/ssl}INBOX", "test@domain.co m",
    "123");
    if(!$mbox) {
    echo 'Error: '.imap_last_err or().'<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

    #2
    Re: Error: Unable to create selectable TCP socket

    ros wrote:
    Hi! I have a simple PHP script:
    >
    $mbox = imap_open ("{localhost:99 3/imap/ssl}INBOX", "test@domain.co m",
    "123");
    if(!$mbox) {
    echo 'Error: '.imap_last_err or().'<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@attgl obal.net
    =============== ===

    Comment

    • ros

      #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...@attg lobal.netwrote:
      ros wrote:
      Hi! I have a simple PHP script:
      >
      $mbox = imap_open ("{localhost:99 3/imap/ssl}INBOX", "t...@domain.co m",
      "123");
      if(!$mbox) {
      echo 'Error: '.imap_last_err or().'<br/>';
      }
      >
      Script works fine from local PC, but results to error when executed at
      web
      hoster site.
      The error is: "Error:Unableto createselectabl eTCPsocket(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...@attgl obal.net
      =============== ===

      Comment

      • Jerry Stuckle

        #4
        Re: Error: Unable to create selectable TCP socket

        ros wrote:
        On 16 ÍÁÒ, 17:04, Jerry Stuckle <jstuck...@attg lobal.netwrote:
        >ros wrote:
        >>Hi! I have a simple PHP script:
        >>$mbox = imap_open ("{localhost:99 3/imap/ssl}INBOX", "t...@domain.co m",
        >>"123");
        >>if(!$mbox) {
        >>echo 'Error: '.imap_last_err or().'<br/>';
        >>}
        >>Script works fine from local PC, but results to error when executed at
        >>web
        >>hoster site.
        >>The error is: "Error:Unableto createselectabl eTCPsocket(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.co m 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@attgl obal.net
        =============== ===

        Comment

        Working...