find php location mac
$ip = $_SERVER['REMOTE_ADDR'];
$details = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json"));
echo $details->city; // -> "Mountain View"command : php -i | grep php.inisudo cp /private/etc/php.ini.default /private/etc/php.ini
Also in PHP:
- composer laravel app
- base code 64 a image in php
- breaking long array in php
- dompdf/dompdf v0.8.5 requires ext-dom
- clear laravel cahce
- date format php datetime
- difference between GET, POST and REQUEST methods?
- assertequals vs assertsame
- date input n php
- convert base64 to string php
- Warning: mysqli_error() expects exactly 1 parameter, 0
- check the php version used by composer
- avoid sql injection in password field
- cache;clear laravel
- current url php
- Laravel Eloquent, group by month/year
- add random string with data php
- doctrine fixture bundle
- aws s3 laravel package
- clear the saved cache of my laravel websitefor all the users
- PHP test if text contains subsrting and if so replace it
- all words capital php
- call a seeder in database laravel
- PHP Encode image in Base64