Created
August 29, 2018 10:57
-
-
Save ebi3102/7b265c363b159ac8281cdb8ec7e96b20 to your computer and use it in GitHub Desktop.
This snippet code show user IP adress and it's Browser
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="utf-8"> | |
<title>Your IP Address</title> | |
</head> | |
<body> | |
<p>Your IP address followes:</p> | |
<div style="background: #ddd ; border:1px solid #999; font-weight: bold; font-size:20px; padding: 10px; width: 50%;"> | |
<p>Your IP Address: | |
<span style="color: red"><?php echo $_SERVER['REMOTE_ADDR'] ; ?></span></p> | |
<p>Your Browser: | |
<span style="color: red"><?php echo $_SERVER['HTTP_USER_AGENT'] ; ?></span></p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment