When the DB server is not on the same server as the webserver, the following line must be changed to allow importing the file (adding the LOCAL option):
dbquery("LOAD DATA INFILE '".$base.'/'.$file2."' INTO TABLE geoip_country FIELDS TERMINATED BY ',' ENCLOSED BY '\"'");
to
dbquery("LOAD DATA LOCAL INFILE '".$base.'/'.$file2."' INTO TABLE geoip_country FIELDS TERMINATED BY ',' ENCLOSED...
2008-10-11 20:06:25 UTC in MailWatch for MailScanner