Last active
November 4, 2020 15:39
-
-
Save LGitHub-sprout/aba5b8711714f664bdd0656fad59e495 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
/** | |
* Loads of useful info here: https://www.php.net/reserved.variables.server | |
* | |
* Double check: always sanitize superglobals before using. | |
* | |
* ex. $came_from = htmlentitles( $_SERVER[ 'HTTP_REFERER' ] ); | |
* ex. echo "My username is " . $_ENV[ 'USER' ]; | |
* | |
* lists all server keys and values | |
*/ | |
foreach ( $_SERVER as $param => $value ) echo "<p>$param = '$value'</p>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment