summaryrefslogtreecommitdiffstats
path: root/server_req_vars.php
blob: f2f984532d6c9c6a1c81b194526a0a9d7b842ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hacker's Corner</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
    echo "<h3 style=\"color: #40dd40; background-color: lightgray; border-bottom: 1px dashed #777;\">Server details</h3>\n";
    echo "SERVER_NAME: {$_SERVER['SERVER_NAME']}<br />\n";
    echo "SERVER_ADDR: {$_SERVER['SERVER_ADDR']}<br />\n";
    echo "SERVER_PORT: {$_SERVER['SERVER_PORT']}<br />\n";
    echo "DOCUMENT_ROOT: {$_SERVER['DOCUMENT_ROOT']}<br />\n";

    echo "<h3 style=\"color: #40dd40; background-color: lightgray; border-bottom: 1px dashed #777;\">Page details</h3>\n";
    echo "PHP_SELF: {$_SERVER['PHP_SELF']}<br />\n";
    echo "SCRIPT_FILENAME: {$_SERVER['SCRIPT_FILENAME']}<br />\n";

    echo "<h3 style=\"color: #40dd40; background-color: lightgray; border-bottom: 1px dashed #777;\">Request details</h3>\n";
    echo "REMOTE_ADDR: {$_SERVER['REMOTE_ADDR']}<br />\n";
    echo "REMOTE_PORT: {$_SERVER['REMOTE_PORT']}<br />\n";
    echo "REQUEST_URI: {$_SERVER['REQUEST_URI']}<br />\n";
    echo "QUERY_STRING: {$_SERVER['QUERY_STRING']}<br />\n";
    echo "REQUEST_METHOD: {$_SERVER['REQUEST_METHOD']}<br />\n";
    echo "REQUEST_TIME: {$_SERVER['REQUEST_TIME']}<br />\n";
    echo "HTTP_REFERER: {$_SERVER['HTTP_REFERER']}<br />\n";
    echo "HTTP_USER_AGENT: {$_SERVER['HTTP_USER_AGENT']}<br />\n";
?>
</body>
</html>