ASKER
$userIP = getRealIpAddr();
// ASSUME IMAGE IS SAVED AS THE STRING OF THE IP.JPG
echo "<img src='.$userIP.".jpg'>";
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.
TRUSTED BY
https://searchengineland.com/10-practical-tips-using-geo-location-reach-target-audience-217301
How does Geo-Targeting Work
As you can see from my campaign settings. I can target specific areas and exclude specific areas