Category: Code

Poor mans GeoIP – Quick and Easy Geolocation 0

Poor mans GeoIP – Quick and Easy Geolocation

//poor mans geoip $country=trim(file_get_contents(“http://api.hostip.info/country.php?ip=”.$_SERVER[‘REMOTE_ADDR’])); //You can then redirect customers to different offers depending on country. I wouldn’t recommend this for critical or high volume...

Three ways to debug php 0

Three ways to debug php

Method 1 – error.log For this to work you need to be coding in a linux environment with php, apache etc setup. This is...