MYSQL : (HY000/2002): Only one usage of each socket address (protocol/network address/port) is normally permittedMYSQL : (HY000/2002): Only one usage of each socket address (protocol/network address/port) is normally permitted

Exemple d’erreur : C’est un souci Windows il vous faut modifier et ajouter des clés registre [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] TcpTimedWaitDelay REG_DWORD: 0000001e (hex) MaxUserPort REG_DWORD: 0000fffe (hex) TcpNumConnections REG_DWORD: 00fffffe (hex) TcpMaxDataRetransmissions

PHP: Récupérer IP visiteur sans utiliser “exec”PHP: Récupérer IP visiteur sans utiliser “exec”

function getUserIP() { if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; $_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; } $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward,