Cita:
Iniciado por Hugo_Euan
Sugiero que si tus redirecciones hacia paises supera 2 o 3 hagas uso de un Swithc :)
Código PHP:
Ver original$IpSource = $_REQUEST["ThisIP"];
switch($IpSource){
case '192.168.x.x':
header('location:http://www.google.com'); break;
case '192.168.x.x':
header('location://http://www.microsoft.com'); break;
//y así sucesivamente....
}
Saludos y Éxito
yo hago el if almacenando el nombre del pais en una variable y lo comparo
$nom=getCountryFromIP($ip, " NamE ");
if ($nom== "Spain"){
echo "eres Español ";
}
etc etc
por que dices q es mejor el switch