UpdateCurrencyRate.php
authorEdward <edward@roojs.com>
Mon, 20 Oct 2014 07:13:05 +0000 (15:13 +0800)
committerEdward <edward@roojs.com>
Mon, 20 Oct 2014 07:13:05 +0000 (15:13 +0800)
UpdateCurrencyRate.php

index 1443cf3..0a9fa75 100644 (file)
@@ -30,9 +30,11 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         echo"'update currency exchange rate \n";
         
         $response = $this->curl($this->actionUrl, array(), 'GET');
-        echo $response;exit;
+        
+        file_put_contents('/tmp/test.html', $response);
+        
         $doc = new DOMDocument();
-        $doc->loadHTML($response);
+        $doc->loadHTMLFile('/tmp/test.html');
         
         $xpath = new DOMXpath($doc);