I want to use on my site a script that shows the user’s country code. I know about maxmind.com’s GeoIP PHP API, but I can’t install the mod_geoip (not my own server)
🙁
I want to use on my site a script that shows the user’s country
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Apache
mod_geoipis an Apache module, not a PHP-specific library. There are PECL bindings for GeoIP that can be used instead ofmod_geoip, but these probably also require access to your server configuration. However, there exists also a pure PHP module that can easily be inserted into an existing app (does not require either PECL bindings ormod_geoip) found here.