Created
May 26, 2020 03:38
-
-
Save blogcacanid/f6a5a0896c13cd414d1c7ce2170eb8eb to your computer and use it in GitHub Desktop.
welcome.blade.php Back End Product Laravel 7
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 lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Server is Running</title> | |
</head> | |
<body> | |
<h1>It works!</h1> | |
<p><em><font size="1">This is the default web page for this server.</font></em></p> | |
<p><em><font size="1">The web server software is running but no content has been added, yet.</font></em></p> | |
<p><em><font size="1">This page exist to show that network connection is worked.</font></em></p> | |
<br/> | |
<?php | |
if (!empty($_SERVER["HTTP_CLIENT_IP"])) { | |
//check for ip from share internet | |
$ip = $_SERVER["HTTP_CLIENT_IP"]; | |
} elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { | |
// Check for the Proxy User | |
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; | |
} else { | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
} | |
?> | |
<p> | |
<em> | |
<font size="1"> | |
<?php | |
echo "Hostname : " . gethostname() . "<br />"; | |
echo "Your IP is : " . $ip; | |
?> | |
</font> | |
</em> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment