+91 737 679 0615
if($_SESSION['IPLocationAdr']==''){ $data = ipInfo($_SERVER['REMOTE_ADDR']); } //print_r($data); if($data['geoplugin_city']!=''){ //echo "hello"; $_SESSION['IPLocationAdr'] = $data['geoplugin_city']; }else if($data['geoplugin_region']!=''){ $_SESSION['IPLocationAdr'] = $data['geoplugin_region']; } //echo $_SESSION['IPLocationAdr']; ################################################################### if($_SESSION['IPLocationAdr']==''){ $chkulrss = $_SERVER['REQUEST_URI']; $Furls = explode("/",$chkulrss); if($Furls[2]){ $_SESSION['IPLocationAdr'] = str_replace("%20"," ",$Furls[2]); } } ############################################################################################ $serverpath = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; //echo $serverpath; $rootpath = dirname($serverpath); $path_parts = pathinfo($serverpath); ############################################################################################ function ipInfo($ip) { if(isset($ip)) { $data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip)); if(($data['geoplugin_status'] == '200') || ($data['geoplugin_status'] == '206')) { return $data; } else { echo "Bad request!, Error code is ".$data['geoplugin_status']; } } else { echo "IP is not set!"; } } ?>
+91 737 679 0615
The Principle Focus in Dr K.S. Jaiswal Practice is always on Your Safety and Obtaining Optimal Results, Keeping your Privacy & Confidentiality Ensured