Answers for "php $_server 'remote_addr' not working"

PHP
1

$_server 'remote_addr' not working properly

if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
    $ip_address = $_SERVER['REMOTE_ADDR'];
}
Posted by: Guest on September-17-2020

Code answers related to "php $_server 'remote_addr' not working"

Browse Popular Code Answers by Language