ExcelToJson.php
authorEdward <edward@roojs.com>
Mon, 18 Mar 2013 02:56:56 +0000 (10:56 +0800)
committerEdward <edward@roojs.com>
Mon, 18 Mar 2013 02:56:56 +0000 (10:56 +0800)
ExcelToJson.php

index 56e4362..9989b68 100644 (file)
@@ -45,7 +45,11 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         $rows = array();
         
         while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
-            
+            print_r($n);
+        }
+        exit;
+        if (empty($cols)) {
+            $this->jerr("could not find a row with " . implode(' / ', $req));
         }
         
         fclose($fh);