Skip to content

Instantly share code, notes, and snippets.

@reline
Created July 16, 2016 01:27
Show Gist options
  • Save reline/aa6c2a5ec2be8be6c67d93830949ccff to your computer and use it in GitHub Desktop.
Save reline/aa6c2a5ec2be8be6c67d93830949ccff to your computer and use it in GitHub Desktop.
Everything you need to know about your server
<?php
echo "PHP_SELF: " . $_SERVER['PHP_SELF'];
echo "<br>";
echo "GATEWAY_INTERFACE: " . $_SERVER['GATEWAY_INTERFACE'];
echo "<br>";
echo "SERVER_ADDR: " . $_SERVER['SERVER_ADDR'];
echo "<br>";
echo "SERVER_NAME: " . $_SERVER['SERVER_NAME'];
echo "<br>";
echo "SERVER_SOFTWARE: " . $_SERVER['SERVER_SOFTWARE'];
echo "<br>";
echo "SERVER_PROTOCOL: " . $_SERVER['SERVER_PROTOCOL'];
echo "<br>";
echo "REQUEST_METHOD: " . $_SERVER['REQUEST_METHOD'];
echo "<br>";
echo "REQUEST_TIME: " . $_SERVER['REQUEST_TIME'];
echo "<br>";
echo "QUERY_STRING: " . $_SERVER['QUERY_STRING'];
echo "<br>";
echo "HTTP_ACCEPT: " . $_SERVER['HTTP_ACCEPT'];
echo "<br>";
echo "HTTP_ACCEPT_CHARSET: " . $_SERVER['HTTP_ACCEPT_CHARSET'];
echo "<br>";
echo "HTTP_HOST: " . $_SERVER['HTTP_HOST'];
echo "<br>";
echo "HTTP_REFERER: " . $_SERVER['HTTP_REFERER'];
echo "<br>";
echo "HTTPS: " . $_SERVER['HTTPS'];
echo "<br>";
echo "REMOTE_ADDR: " . $_SERVER['REMOTE_ADDR'];
echo "<br>";
echo "REMOTE_HOST: " . $_SERVER['REMOTE_HOST'];
echo "<br>";
echo "REMOTE_PORT: " . $_SERVER['REMOTE_PORT'];
echo "<br>";
echo "SCRIPT_FILENAME: " . $_SERVER['SCRIPT_FILENAME'];
echo "<br>";
echo "SERVER_ADMIN: " . $_SERVER['SERVER_ADMIN'];
echo "<br>";
echo "SERVER_PORT: " . $_SERVER['SERVER_PORT'];
echo "<br>";
echo "SERVER_SIGNATURE: " . $_SERVER['SERVER_SIGNATURE'];
echo "<br>";
echo "PATH_TRANSLATED: " . $_SERVER['PATH_TRANSLATED'];
echo "<br>";
echo "HTTP_USER_AGENT: " . $_SERVER['HTTP_USER_AGENT'];
echo "<br>";
echo "SCRIPT_NAME: " . $_SERVER['SCRIPT_NAME'];
echo "<br>";
echo "SCRIPT_URI: " . $_SERVER['SCRIPT_URI'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment