How To Set Automatic Country Wise Currency on Domain for Sale Page

Subscribe our YouTube Channel    

<?php

$ip = $_SERVER['REMOTE_ADDR'];
$xml = simplexml_load_file("http://www.geoplugin.net/xml.gp?ip=".$ip); 

$c = $xml->geoplugin_countryName ;

switch ($c) 
{
    case "India":
        $cc = "Your Domain Price in RS";
        break;
    default:
         $cc = "Your Domain Price in $";
}

?>

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

Hey, I’m Bharat Makwana, A Full Time Blogger & Youtuber, Founder of InfinityGyan, Bloggingguidance, Veewom and BM Tech Tips YouTube Channel.

You may also like this!