-
Notifications
You must be signed in to change notification settings - Fork 1
/
09_superglobals.php
32 lines (29 loc) · 1.43 KB
/
09_superglobals.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
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<title>Title</title>
</head>
<body>
<ul>
<li>Host: <?php echo $_SERVER['HTTP_HOST']; ?></li>
<li>Document root : <?php echo $_SERVER['DOCUMENT_ROOT']; ?></li>
<li>Server Name: <?php echo $_SERVER['SERVER_NAME']; ?></li>
<li>Server Port : <?php echo $_SERVER['SERVER_PORT']; ?></li>
<li>CurrentFileDir : <?php echo $_SERVER['PHP_SELF']; ?></li>
<li>Request URI : <?php echo $_SERVER['REQUEST_URI']; ?></li>
<li>Server Software: <?php echo $_SERVER['SERVER_SOFTWARE']; ?></li>
<li>Client info : <?php echo $_SERVER['HTTP_USER_AGENT']; ?></li>
<li>Remote Address: <?php echo $_SERVER['REMOTE_ADDR']; ?></li>
<li>Remote Port : <?php echo $_SERVER['REMOTE_PORT']; ?></li>
</ul>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>