Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$stream = stream_socket_client('tcp://www.example.com:80');
assert(is_resource($stream));
fclose($stream);
assert(!is_resource($stream));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.