Created
June 3, 2022 08:27
-
-
Save seieric/7738603c8a9f92eed445ac9a90379438 to your computer and use it in GitHub Desktop.
Dump $_SERVER variable in PHP.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>PHP $_SERVER dumping</title> | |
</head> | |
<body> | |
<table> | |
<?php | |
foreach($_SERVER as $key => $value) { | |
echo "<tr><td>$key</td><td>$value</td></tr>"; | |
} | |
?> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment