Answers for "find ip address in string php"

PHP
7

php get ip address

$clientIPAddress=$_SERVER['REMOTE_ADDR'];
Posted by: Guest on August-06-2019
1

Find ip address location php

//You can use an api:
//Link to documentation: https://ip-get-geolocation.com/documentation/

$LocationArray = json_decode( file_get_contents('http://ip-get-geolocation.com/api/json/35.188.125.133'), true); 	

echo $LocationArray['country']; 	
echo $LocationArray['city']; 	
echo $LocationArray['region']; 	
echo $LocationArray['timezone']; 
Posted by: Guest on November-14-2020

Browse Popular Code Answers by Language