Skip to content

Instantly share code, notes, and snippets.

@draco2003
Last active December 19, 2015 03:09
Show Gist options
  • Save draco2003/5888553 to your computer and use it in GitHub Desktop.
Save draco2003/5888553 to your computer and use it in GitHub Desktop.
diff php-example.php php-example1.php
93,94d92
< static $fp = null;
<
117c115
< if (! $fp) { $fp = fsockopen("udp://$host", $port, $errno, $errstr);}
---
> $fp = fsockopen("udp://$host", $port, $errno, $errstr);
121a120
> fclose($fp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment