Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Last active March 2, 2019 08:17
Show Gist options
  • Save mrvdb/6d33f17a61183ff52083c3c737dd9334 to your computer and use it in GitHub Desktop.
Save mrvdb/6d33f17a61183ff52083c3c737dd9334 to your computer and use it in GitHub Desktop.
<?php
// Quick log wrapper
function _log($str) {
file_put_contents("php://stdout", $str);
}
// Show that we're up
_log("Got some data....\n");
// If we get something, log it
$data=file_get_contents("php://input");
_log($data);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment