projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb06d5e
)
Import/Core_geoip.php
author
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:15:21 +0000
(19:15 +0800)
committer
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:15:21 +0000
(19:15 +0800)
Import/Core_geoip.php
patch
|
blob
|
history
diff --git
a/Import/Core_geoip.php
b/Import/Core_geoip.php
index
760c3d4
..
fd630bd
100644
(file)
--- a/
Import/Core_geoip.php
+++ b/
Import/Core_geoip.php
@@
-53,10
+53,15
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
ini_set("auto_detect_line_endings", true);
$fh = fopen($csv, 'r');
+
if (!$fh) {
$this->jerr("invalid location file");
}
+ $line = trim(fgets($fh));
+
+ print_r($line);exit;
+
$req = array(
'GEONAME_ID', 'CONTINENT_CODE', 'CONTINENT_NAME',
'COUNTRY_ISO_CODE', 'COUNTRY_NAME', 'SUBDIVISION_ISO_CODE',