Get country location of an IP with native PHP

前端 未结 8 1068
野性不改
野性不改 2020-12-23 16:46

Read on before you say this is a duplicate, it\'s not. (as far as I could see)

I want to get the county code in php from the client.

Yes I know you can do th

8条回答
  •  臣服心动
    2020-12-23 17:05

    Can you just install a copy of whois into your home directory and pass the full path into shell_exec? That way you're not bound to their upgrade schedule.

提交回复
热议问题