The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    36
    Perhaps you left safe mode on?
     
  3. minasonline

    minasonline Active Member

    Joined:
    Mar 28, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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