In all tutorials I usually find:
Code: Select all
$fp = stream_socket_client("tcp://www.example.com:80", $errno, $errstr, 30);
if (!$fp) {
print "some error" //HERE I WANT SOME SERIOUS CODE
}
...
Could you show me some example of code to implement in the if statement ?
thanks