Make GET calls directly to geoip.php to get GeoIP info like this:
PHP v5.6.40
, Unknown Region, United States

Passing a format string can give you different output: IP: geo(ip)<br />IP Location: geo(city), geo(region_name), geo(country_name) would give you:
Your IP:<br />IP Location: , Unknown Region, United States

or just include this JavaScript on your page:

and get this output:

This product includes GeoLite data created by MaxMind, available from