sync
authorBlastytheBlue <blastofmn@gmail.com>
Wed, 17 Dec 2014 10:31:51 +0000 (18:31 +0800)
committerBlastytheBlue <blastofmn@gmail.com>
Wed, 17 Dec 2014 10:31:51 +0000 (18:31 +0800)
Pman/Reddit/DataObjects/Reddit_livefeed_embed.php

index 19cb55a..77a1e10 100644 (file)
@@ -43,7 +43,6 @@ class Pman_Reddit_DataObjects_Reddit_livefeed_embed extends DB_DataObject
         
         foreach($xpath->query('//link') as $l){
             $url=parse_url($l->getAttribute("href"));
-            echo print_r($url);
             $file = '/home/reddit/assets/'. $url["host"] . $url["path"];
             if(file_exists($file)){
                 echo "file exists already.\n";
@@ -84,11 +83,8 @@ class Pman_Reddit_DataObjects_Reddit_livefeed_embed extends DB_DataObject
             file_put_contents($file,$contents);
         }
         
-        $x=0;
         foreach($xpath->query('//img') as $im){
-            echo "\$x=".$x++."\n";
             $url=parse_url($im->getAttribute("src"));
-            echo "\n\n".print_r($im->getAttribute("src"))."\n\n";
             $file = '/home/reddit/assets/'. $url["host"] . $url["path"];
             if(file_exists($file)){
                 echo "file exists already.";