find php location mac code example
Example 1: php get location from ip address
$ip = $_SERVER['REMOTE_ADDR'];
$details = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json"));
echo $details->city; // -> "Mountain View"
Example 2: mac php ini file path
command : php -i | grep php.ini
Example 3: location php ini mac os
sudo cp /private/etc/php.ini.default /private/etc/php.ini