Use the silence operator @
to suppress the warning:
$fp = @fsockopen("192.168.1.135", 443, $errno, $errstr, 0.4); //(line 47)
Side note: As you see, the @
operator suppressed the warning as you requested. But be careful. A message like for example 'No route to host' will being also suppressed. (Mostly if your network connection isn't available) So you cannot be sure, that the server is offline. You should additionally output $errmsg
if fsockopen()
fails to see the reason.