Skip to content

Instantly share code, notes, and snippets.

@estebandelaf
Created May 29, 2018 15:37
Show Gist options
  • Save estebandelaf/43b0f54997d339a0d36e0640ec285693 to your computer and use it in GitHub Desktop.
Save estebandelaf/43b0f54997d339a0d36e0640ec285693 to your computer and use it in GitHub Desktop.
<?php
show('$_GET', $_GET);
show('$_POST', $_POST);
show('$_FILES', $_FILES);
show('apache_request_headers()', apache_request_headers());
show('php://input', file_get_contents('php://input'));
function show($name, $var)
{
echo '<h2>',$name,'</h2>',"\n";
debug($var);
}
function debug($var)
{
echo '<pre>',"\n";
print_r($var);
echo '</pre>',"\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment