I'm trying to include an external file onto my server. However, allow_url_fopen does not allow this. I do not want to turn it to ON because that is a huge security compromise. How else could I get this file? My friend said to use file_get_contents, however I am trying to include a .inc and .dat file which aren't supposed to be echoed. I'm not sure how much I want to use cURL either, but I will if its the only way. This is for mod_geoip, by the way.
Probably just will need to use curl functions. Why not install mod_geoip on your server, vs. relying on another remote server to generate your page?
Depends how many requests you are making. The bigger issue I would think is if the remote server you are relying on was down... it would make your site appear to be broken.