]> git.mxchange.org Git - hub.git/blobdiff - udp-inc.php
Example UDP server/client scripts added (license: see comments on online-documentatio...
[hub.git] / udp-inc.php
diff --git a/udp-inc.php b/udp-inc.php
new file mode 100644 (file)
index 0000000..b92a35c
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+global $last_msg;
+$last_msg = "";
+
+function out ($file, $line, $message, $displayDouble = false) {
+       global $last_msg;
+       if (($last_msg != $message) || ($displayDouble)) {
+               print(basename($file)."[${line}]: ${message}\n");
+               $last_msg = $message;
+       }
+}
+
+?>