View Single Post
Old 06-24-2003, 04:11 AM  
sacX
Confirmed User
 
Join Date: Dec 2002
Location: New Zealand
Posts: 2,998
install apache geoip modules from http://www.maxmind.com

Then something like this....

<?
$country_code = apache_note("GEOIP_COUNTRY_CODE");
if ($country_code = "US")
{ $outro = "http://www.ussponsors.com";
header ("Location: $outro" );
}
if ($country_code = "JA")
{ $outro = "http://www.japanlanguagesponsor.com";
header ("Location: $outro" );
}
?>

funkmaster icq me 739765 if any questions.. that code doesn't format quite properly..
sacX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote