[PHP] Question

Discussion in 'PHP' started by CPAPubMichael, Jan 26, 2011.

  1. #1
    Hello,

    Well i have a question regarding GEO-IP. Well i am a programmer, been looking at this for some time now. Just need to know a little more about it. Just remember all programmers need help some time. Well, i have been looking into my register forms and trying to improve them. I have seen other peoples and noticed that they have GEO-IP to find the users country. Well i have never worked with GEO-IP before. So can you guys tell me what one is best for the job and how i would go about setting them up?

    I would like it so there country is determined and then from there i would like to insert it into the database.

    Thank you and any further questions regarding this are welcomed.

    Kind Regards,

    Michael
     
    CPAPubMichael, Jan 26, 2011 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    You can try MaxMind GeoIP Country.
    It has several api also available to ease your work.

    Should you need more help, just ask!
     
    mastermunj, Jan 26, 2011 IP
  3. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much. Is it easy to work with?

    Thanks,

    Michael
     
    CPAPubMichael, Jan 26, 2011 IP
  4. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Yes, pretty easy. They have binary files as well as csv for importing in mysql.

    As its just for registration form, mysql version would do the trick very nicely.
     
    mastermunj, Jan 26, 2011 IP
  5. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK, thank you very much for all your help. Will be looking into it and working with it doing some tests etc. Thanks once again.

    Regards,

    Michael

    / thread
     
    CPAPubMichael, Jan 26, 2011 IP
  6. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Hello Michael.

    If you want ONLY flag of country user uses, you can do it easily with

    api.hostip.info/flag.php?ip=IP where IP = for example $_SERVER['REMOTE_ADDR']; (add http before)

    If you wanted something else, I apologise
     
    G3n3s!s, Jan 26, 2011 IP