Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: IP Location with PHP

  1. #11
    smiling is offline Newbie
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Re: IP Location with PHP

    Hello,

    First of all, thank you for the useful script and data.
    I am new to php programming and need some advice.

    I found difficulties trying to put this script into use. No matter what IP I passed to the check_country function, I always got 'united states' as the answer.

    And then I tried to modify the database structure. I changed the 'from' field and 'to' field, from varchar to biginteger.
    This seems to solve my problem. Different IPs yield different answer from the check_country function.

    But I'm still uncertain whether or not the answer is the correct one because one of the IP I tried to pass to the function gives no result (no country). And yet I know for sure that the IP is a valid internet IP.

    Please advise:
    1. Why did I need to change the 'from' field and 'to' field to biginteger to make the script run correctly?
    2. Why did I get no result for an IP that I know for sure is a valid one?

    Thank you

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Join Date
    Jun 2010
    Location
    USA
    Posts
    579
    Blog Entries
    6
    Rep Power
    20

    Re: IP Location with PHP

    The original poster is no longer with CodeCall. If you have any question regarding this posting, please start a new thread in the appropriate section of the forum (and reference this thread).

    Thank you.
    Wrap [Code] tags when posting code by click on
    Before posting your question, did you look here?

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find Form's Location
    By DenKain in forum C# Programming
    Replies: 3
    Last Post: 10-04-2011, 11:31 AM
  2. Java setting location
    By vaironl in forum Java Help
    Replies: 6
    Last Post: 10-02-2011, 11:43 AM
  3. General Offset and Base location
    By AKMafia001 in forum Assembly
    Replies: 2
    Last Post: 09-26-2011, 07:00 PM
  4. Geo-Location Programming
    By wilkinsonsm4 in forum General Programming
    Replies: 4
    Last Post: 01-14-2011, 09:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts