I use fsockopen, fgets and fputs to implement communication protocol with other machine. NetBeans give warning to all '@' before fsockopen, fputs, fgets
etc. The solution works but without '@' after disconnection of remote device there are warnings (not errors).
I don't want to use error_reporting because it is not more kosher solution. Additionally more code, longer execution time...
Is there any better solution for this?
BTW. the warnings occurs if the destination machine will drop connection. It is possible if device is overload.
$answer=@fgets($socket, $negotiatedMaxLength);
BTW. The solution should work without ini_set
- blocked on server and without error_reporting()
.