PHP Snippets
Name:Footer Display
Description: This simple snippet could be display below your website.
Code below...
>
<?php
//Users IP
$ip = $_SERVER["REMOTE_ADDR"];
//Users Browser
$browser = $_SERVER["HTTP_USER_AGENT"];
//Current Year
$year = date("Y");
//Echo the information
echo "
You are connecting from $ip<br/>
Using Browser $browser<br/>
Copyright © mywebsite.com $year All Rights Reserved.";
//You could add more information such us page generation time or users online. =)
?>
//Users IP
$ip = $_SERVER["REMOTE_ADDR"];
//Users Browser
$browser = $_SERVER["HTTP_USER_AGENT"];
//Current Year
$year = date("Y");
//Echo the information
echo "
You are connecting from $ip<br/>
Using Browser $browser<br/>
Copyright © mywebsite.com $year All Rights Reserved.";
//You could add more information such us page generation time or users online. =)
?>