Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

fsock_open()

Discussion in 'General Discussion' started by minasonline, Oct 26, 2003.

  1. minasonline

    minasonline Active Member

    Joined:
    Mar 28, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Brazil
    Hello,

    After i'm rebuild my PHP, when i'm use the function fsock_open() and the not connect in the address, show this error:

    Warning: fsockopen(): php_hostconnect: connect failed in /home/test/public_html/servidores.php on line 126

    Warning: fsockopen(): unable to connect to xx.xx.xxx.xxx:110 in /home/test/public_html/servidores.php on line 126

    And not terminate the script (send email to my email notify the error on this IP and this port).

    Any idea?!
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    166
    Perhaps you left safe mode on?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. minasonline

    minasonline Active Member

    Joined:
    Mar 28, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Brazil
    Hello ciphervendor,

    Thanks by help, but i'm fix my problem inserting "@" in the function:

    $test = @fsockopen(...);

    When the function not connect with my server, the error is now show in the screen and the script run fine...

    :D
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice