-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver-info.php
31 lines (28 loc) · 885 Bytes
/
server-info.php
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
<?php
$co = "<h2>Comment Out</h2>";
# $_SERVER SUPERGLOBALS
$server = [
'Host Server Name' => $_SERVER['SERVER_NAME'],
'Host Header' => $_SERVER['HTTP_HOST'],
'Server Software' => $_SERVER['SERVER_SOFTWARE'],
'Document Root' => $_SERVER['DOCUMENT_ROOT'],
'Current Page' => $_SERVER['PHP_SELF'],
'Script Name' => $_SERVER['SCRIPT_NAME'],
'Absolute Path' => $_SERVER['SCRIPT_FILENAME']
];
/*
echo $server['Host Server Name'];
echo $server['Host Header'];
echo $server['Server Software'];
echo $server['Document Root'];
print_r ($_SERVER);
// Create Client Array
echo $co;
*/
$client = [
'Client System Info' => $_SERVER['HTTP_USER_AGENT'],
'Client IP' => $_SERVER['REMOTE_ADDR'],
'Remote Port' => $_SERVER['REMOTE_PORT']
];
// print_r ($client);
?>