Hi all I have some code that's being run through a foreach loop:
if($fp = @fsockopen($value['privateip'],1935,$errCode,$errStr,.5)){
$value['alive'] = 'alive';
} else {
$value['alive'] = 'down';
}
@fclose($fp);
It basically pings my servers at port 1935 and then changes the value in an array. I have read php's file functions are dangerous if code injection occurs so they would probably be better off disabled. How can I change this code to use cURL instead?