Use the following Code to get geo location details based on Your IP $country data=getLocationInfoByIp(); echo $country data[‘country’]; echo $country data[‘city’]; function getLocationInfoByIp() { $current_ip = @$_SERVER[‘HTTP_CLIENT_IP’]; $forwardip = @$_SERVER[‘HTTP_X_FORWARDED_FOR’]; $remoteip = @$_SERVER[‘REMOTE_ADDR’]; $geo_data = array(‘country’=>”, ‘city’=>”); if(filter_var($current_ip, FILTER_VALIDATE_IP)) { $ipaddress = $current_ip; } elseif(filter_var($forwardip, FILTER_VALIDATE_IP)) { $ipaddress = $forwardip; } else { $ipaddress = $remoteip; }…
AB de Villiers made fastest Century in Cricket History 2015
AB de Villiers made fastest Century in world cup Cricket History 2015
Applications invites for various posts in Kochi Metro Rail ltd
Last date of Application: march 18 2015 How to apply Address to send Applications Dy. General Manager (HR & Training), Kochi Metro Rail Ltd., 8th Floor, Revenue Tower, Park Avenue, Kochi- 682011 Download Application Form I.OPERATIONS DEPARTMENT – TOTAL POSTS = 74 Name of the post Addl. General Manager (Operations) Total No. of posts 1…
Seven Emirates in UAE
1.Abudhabi 2,Ajman 3.Dubai 4.Fujaira 5.Sharjah 6.Ras Al Kahimah 7.Umm Al Qaiwan
Get URL parameters using javascript or jquery
Example URL https://smarttips.in?newsletter=1 <script> var queryString = (function(url) { if (url == “”) return {}; var smart = {}; for (var i = 0; i < url.length; ++i) { var pS=url[i].split(‘=’, 2); if (pS.length == 1) smart[pS[0]] = “”; else smart[pS[0]] = decodeURIComponent(pS[1].replace(/+/g, “””)); } return pS; })(window.location.search.substr(1).split(‘&’)); $(document).ready(function(){ if(queryString[“newsletter”]==1) { alert(‘Got it!!!’) } }); </script>
