public static function is_port_open($host, $port)
	{
		$connection = @fsockopen($host, $port);
		if (is_resource($connection))
		{
			fclose($connection);
			return FALSE;
		}
		return TRUE;
	}
public static function is_port_open($host, $port)
	{
		$connection = @fsockopen($host, $port);
		if (is_resource($connection))
		{
			fclose($connection);
			return FALSE;
		}
		return TRUE;
	}
public static function is_port_open ( $ host , $ port ) { $ connection = @ fsockopen ( $ host , $ port ) ; if ( is_resource ( $ connection ) ) { fclose ( $ connection ) ; return FALSE ; } return TRUE ; }
Check if a port is open
@param  string  $host
@param  integer  $port
@return boolean
Check if a port is open