Jump to content

Recommended Posts

Posted

On my PHP script, I get a timeout.

 

Here is the script:

<?php

$fp = fsockopen("64.62.227.24", 6210, $errno, $errstr, 1); //open connection yet again

if(!$fp) { //if connection

echo("Fail: $errno - $errstr");

}

else{

echo("Success");

}

?>

 

and here is the result when I run it from server123 (triphopstop.com)

 

Warning: fsockopen(): unable to connect to 64.62.227.24:6210 in /home/jjrrftt/public_html/testgrab.php on line 2

Fail: 110 - Connection timed out

Posted

There is nothing wrong with your script nor fsockopen. The problem is we don't leave ports like that open on the server and usually will not open them. You will need to submit a ticket to the help desk and provide the who, what, and why you need that port and request that it be opened.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...