Pman/Reddit/DataObjects/Reddit_livefeed.php
authorAlan Knowles <alan@roojs.com>
Mon, 8 Dec 2014 08:42:49 +0000 (16:42 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 8 Dec 2014 08:42:49 +0000 (16:42 +0800)
Pman/Reddit/DataObjects/Reddit_livefeed.php

index 72379e5..1ff1ddd 100644 (file)
@@ -116,7 +116,22 @@ data =>
     
     function fetchEmbed()
     {
-        
+        /*
+        $r = json_decode($this->embeds);
+        // output to
+        foreach($r as $i=>$em) {
+        //$file =  /home/reddit/ date('Y/m/d', strtotime($this->created_dt . " - 8 HOURS")) . "/" . $this->uid . '.' . $i . ".pdf"
+            if (file_exist)($file) {
+                continue
+            }
+            $dir = dirname($file);
+            if (!file_exist($dir)) {
+                mkdir($dir,660, true);
+            }
+            $url = http://redit....... 
+            $cmd = "/usr/bin/wkhtmltopdf $url $file";
+        }
+        */