Created
May 29, 2018 15:37
-
-
Save estebandelaf/43b0f54997d339a0d36e0640ec285693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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