Created
February 13, 2017 21:09
-
-
Save strangerstudios/7c506394e0245c62edb8f52954f116b2 to your computer and use it in GitHub Desktop.
Dump the PHP $_SERVER variable for testing.
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
//navigate to /?test=1 to view the $_SERVER variables | |
//be sure to remove this code when finished | |
if(!empty($_REQUEST['test'])) { | |
echo "<pre>"; | |
print_r($_SERVER); | |
echo "</pre>"; | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This also works for $_SERVER dump without bothering with URL param.