I have the following code:
$open_socket = fsockopen($host,$port,$errno,$errstr,30); if(!$open_socket){ echo \"$errstr ($errno)\".$nl; }else{
You can supress warnings calling fsockopen
$open_socket = @fsockopen($host,$port,$errno,$errstr,30);