Hi
This is probably a stupid question, but I can't seem to find the answer...
I am currently running Maxmind on my server.
I want to be able to call the script from a few other sites, but when I put full URL's in the on page PHP, it doesn't work?
Does anyone know how to fix this? Or know of somewhere I can learn to fix this myself?
Eg.
database is located at http://www.mysite.com/GeoIP/database.dat (example)
Here is a section of the code that needs to be included on the page
$gi = geoip_open('/home/iptrack/public_html/GeoIP/GeoLiteCity.dat', GEOIP_STANDARD);
When I change "/home/iptrack/public_html/GeoIP/GeoLiteCity.dat" to "http://www.mysite.com/GeoIP/database.dat", the script no longer functions
Thanks in advance...
This is probably a stupid question, but I can't seem to find the answer...
I am currently running Maxmind on my server.
I want to be able to call the script from a few other sites, but when I put full URL's in the on page PHP, it doesn't work?
Does anyone know how to fix this? Or know of somewhere I can learn to fix this myself?
Eg.
database is located at http://www.mysite.com/GeoIP/database.dat (example)
Here is a section of the code that needs to be included on the page
$gi = geoip_open('/home/iptrack/public_html/GeoIP/GeoLiteCity.dat', GEOIP_STANDARD);
When I change "/home/iptrack/public_html/GeoIP/GeoLiteCity.dat" to "http://www.mysite.com/GeoIP/database.dat", the script no longer functions
Thanks in advance...