Sometimes the fsockopen fails to open a port. I am using this line;
$portcheck80=fsockopen($ip, 80, &$errornumber, &$errordescription, 60);
fclose($portcheck80);
if (!$errordescription80)
{ $port80="BAD"; } else { $port80="OK"; }
Sometimes it returns this error;
Fatal error: Maximum execution time of 60 seconds exceeded in d:\web\serverwatch\serverwatch.php on line 23
This error cause the program to stop, how do I prevent it from doing that? All other things to do later in the script are not executed. I just want it to store OK or BAD.
Thankful for help / Henrik