Changeset 77 for global.php
- Timestamp:
- Sep 17, 2007, 8:52:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.php
r67 r77 95 95 function CheckPortStatus($Ip, $Port) 96 96 { 97 error_reporting(0); 98 if($Fp1 = fsockopen($Ip, $Port, $ERROR_NO, $ERROR_STR,(float)0.5)) 99 { 100 fclose($Fp1); 101 return true; 102 } 103 else 104 { 105 //echo($ERROR_NO.','.$ERROR_STR); 106 //die(); 107 return false; 108 } 97 function ErrorHandler($errno,$errmsg,$filename,$linenum,$vars) 98 { 99 } 100 set_error_handler('ErrorHandler'); 101 //error_reporting(0); 102 if($Fp1 = fsockopen($Ip, $Port, $ERROR_NO, $ERROR_STR,(float)0.5)) 103 { 104 fclose($Fp1); 105 return true; 106 } else 107 { 108 //echo($ERROR_NO.','.$ERROR_STR); 109 //die(); 110 return false; 111 } 112 restore_error_handler(); 109 113 } 110 114
Note:
See TracChangeset
for help on using the changeset viewer.