I would think using HTTP_ACCEPT_LANGUAGE to get the users browser language/country info would be quicker and easier to implement.
Using HTTP headers to identify the country where a visitor comes from is totally inaccurate. My browser identifies itself with: Accept-Language: en-us,en;q=0.5, while I live in the Netherlands where the main language is Dutch.
When you need a little bit of accuracy you can't avoid using an IP to country database.
Regards,
Filip de Waard
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php