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

index 0a9fa75..cd2cde7 100644 (file)
@@ -31,10 +31,8 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $response = $this->curl($this->actionUrl, array(), 'GET');
         
-        file_put_contents('/tmp/test.html', $response);
-        
         $doc = new DOMDocument();
-        $doc->loadHTMLFile('/tmp/test.html');
+        $doc->loadHTML($response);
         
         $xpath = new DOMXpath($doc);