[PHP] Detect User Client IP XAMPP or Localhost Machine Supported
THIS SITE IS MIRROR || Skip to Full Contents (Read More)
[PHP] Detect User Client IP XAMPP or Localhost Machine Supported - pre>
Usage: var_dumpget_client_ip;
/
Detect is localhost
@return boolean
Usage: var_dump(get_client_ip());/**
- Detect is localhost
* - @return boolean
*/
function isLocalHost()
{ $whitelist = [
‘127.0.0.1’,
‘::1’,
];
return in_array($_SERVER[‘REMOTE_AD
THIS SITE IS MIRROR || Skip to Full Contents (Read More)
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.