Gossamer Forum
Home : General : Perl Programming :

Re: [cK] convert IP to Country

Quote Reply
Re: [cK] convert IP to Country In reply to
In Reply To:
How does this work exactly?

I only need to resolve dutch or german visitors...Could I use this techique to write a small perl snippet to do the same? Would be great!


It's a MySQL table so you would need access to a MySQL database, or any SQL database should work really (with some modification of the insert code). If you use Perl there's DBI/MySQL.pm or something like that which make it possible to communicate with a MySQL DB.

In the attached file (coming with the SQL-file when you download) there's a short query which is to be used for seeing if a visitor is german or dutch for instance.

Do you have DB access? (of any kind)
Subject Author Views Date
Thread convert IP to Country robyone 6556 Nov 13, 2002, 5:56 AM
Post Re: [robyone] convert IP to Country
Paul 6381 Nov 13, 2002, 6:06 AM
Thread Re: [robyone] convert IP to Country
Jome 6102 Apr 21, 2003, 4:11 AM
Thread Re: [Jome] convert IP to Country
cK 6039 Apr 22, 2003, 3:30 PM
Thread Re: [cK] convert IP to Country
Jome 6054 Apr 22, 2003, 10:47 PM
Thread Re: [Jome] convert IP to Country
cK 6005 Apr 25, 2003, 2:30 AM
Post Re: [cK] convert IP to Country
cK 6014 Apr 25, 2003, 8:21 AM