IP Trace in PHP

Developers ONLY As a quick snippet I was asked: how do you get useful information from an IP Address? Once you have the variable which is the IP address assumed from some database or directly asĀ $_SERVER[‘REMOTE_ADDR’] create some PHP f() along the lines of: $ip = $_POST[‘ipAddress‘]; $locationDetails = json_decode(file_get_contents(“http://ipinfo.io/{$ip}/json”)); assuming the ipAddress is passed as a variable or in this case I’m assuming it’s an AJAX function hence the $_POST. The second line is the important one which creates

Continue Reading

Google Maps V3 and JQuery Mobile

This Post is for DEVELOPERs ONLY I’m going to assume that your main mobileĀ page includes something along the lines of: <!— Core Jquery Mobile —> <link rel=”stylesheet” href=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css”/> <script src=”http://code.jquery.com/jquery-1.11.3.min.js”></script> <script src=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js”></script> <!— Google Maps —> <script src=”https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false”></script> The above is current at the time of this post [Autmun 2016]. I will await JQuery Mobile 1.5 as and when. Chances are that if you are reading this you are having some difficulty getting Google Maps to work with JQuery Mobile.

Continue Reading

Site Footer