Get location from an IP address, IPinfo API and PHP

Get location from an IP address, IPinfo API and PHP

SUBTITLE'S INFO:

Language: English

Type: Robot

Number of phrases: 43

Number of words: 324

Number of symbols: 1351

DOWNLOAD SUBTITLES:

SUBTITLES:

Subtitles generated by robot
00:02
hi guys today I want to show you how to get location data using an IP address the API web service I'm going to be using today is from IP o info so if you go to that website scroll to the bottom to the footer you'll see a developer's link click that once on this page you'll see several different ways you can interact with the API for my demo I'm going to use the curl option so let's flip back to NetBeans so we can start coding some this stuff out now normally
00:33
will dynamically grab it uses IP address and it's add to a variable but since I'm on a local machine I'm gonna mainly add one so I got one of my notes and we need
01:10
the API URL cat Nate our example IP address alright so as I mentioned before I'm gonna be using curl and as I stated before in a previous video basically they get curl up a running you only need
01:44
three functions the curl initialize curl execute and her clothes but once in the output to a variable so I need a throw curl return transfer
02:13
option and actually include the variable will be sending data to just call it data should be a print this out save it
02:56
run boom so as you can see the detail for this IP address includes city round rock region Texas country code is us we have longitude latitude data we have have even have postal code data it's currently JSON what I want to do is one can convert it into an array and I'll just say return the break JSON change this out refresh so if you think
04:03
about it this data here it can be used for custom landing pages custom greetings the longitude latitude information can be used with Google Maps I mean you have some options here well okay oh good day guys

DOWNLOAD SUBTITLES: