Posts by Pedro Monteiro Arantes • 9 points
1 post
-
0
votes2
answers160
viewsA: Use IP or LOCATION the user is (or closest to) to send a query
// Função para obter o IP PHP function get_client_ip() { $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if(getenv('HTTP_X_FORWARDED_FOR')) $ipaddress =…