Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created August 31, 2010 23:12
Show Gist options
  • Save aaronpk/559951 to your computer and use it in GitHub Desktop.
Save aaronpk/559951 to your computer and use it in GitHub Desktop.
<?php
ob_start();
echo "\n\n\n============\n" . date('Y-m-d H:i:s') . ' ' . $_SERVER['REMOTE_ADDR'] . "\n";
print_r($_GET);
print_r($_POST);
print_r($_SESSION);
print_r(apache_request_headers());
$input = json_decode(file_get_contents("php://input"));
print_r($input);
echo "\n";
$fp = fopen('/tmp/tropo.log', 'a');
fwrite($fp, ob_get_clean());
// Your code below
// Tropo input is available in the $input variable
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment