Would like some help with inserting IP country flags

Discussion in 'PHP' started by ian_batten, Dec 16, 2006.

  1. #1
    Hey all,
    Okay, so I have been manipulatuing this script for the past few weeks, and got it going good. I have found a way to display IP flags, (the script is from hostip.com), however, it only recognises a few flags, such as UK, US and France. So, i was wondering if there was any scripting I couuld do to display the flags myself. I found a package of flags (about 40 odd flags) which I downloaded...but I just need to know how to impliment a script so that depending on where the IP is originating from, the IP flag will show!
    You can see my current development here, http://www.insectstore.com/classifieds.php

    Thanks in advance!
     
    ian_batten, Dec 16, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    ouch, I wouldn't be so quick to display peoples IP addresses to the public, no one will thank you for that, the flag will do just fine.

    And if you search these forums for recent posts about geoip packages you'll find a free database script that can do exactly that.

    http://forums.digitalpoint.com/showthread.php?t=198430
     
    krakjoe, Dec 16, 2006 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
  4. ian_batten

    ian_batten Well-Known Member

    Messages:
    1,991
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Excellent, just what I wanted....thanks guys!
     
    ian_batten, Dec 17, 2006 IP
  5. coolmaste

    coolmaste Peon

    Messages:
    120
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    free-php-scripts.net is nice site
     
    coolmaste, Dec 18, 2006 IP
  6. ian_batten

    ian_batten Well-Known Member

    Messages:
    1,991
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    185
    #6
    Yea, first time I come across that one! Some good scripts.
     
    ian_batten, Dec 18, 2006 IP