Import/Core_geoip.php
authorEdward <edward@roojs.com>
Tue, 13 May 2014 11:17:02 +0000 (19:17 +0800)
committerEdward <edward@roojs.com>
Tue, 13 May 2014 11:17:02 +0000 (19:17 +0800)
Import/Core_geoip.php

index fd630bd..3e35105 100644 (file)
@@ -58,9 +58,9 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
             $this->jerr("invalid location file");
         }
         
-        $line = trim(fgets($fh));
+        $linecount = count(file($csv));
         
-        print_r($line);exit;
+        print_r($linecount);exit;
         
         $req = array(
             'GEONAME_ID', 'CONTINENT_CODE', 'CONTINENT_NAME',