$x->insert();
}
}
+ /*
function fetchEmbed()
{
$url = http://redit.......
$cmd = "/usr/bin/wkhtmltopdf $url $file";
}
- */
+
$r = json_decode($this->embeds);
foreach($r as $i=>$em) {
+
$file = '/home/reddit/' . date('Y/m/d',strtotime($this->created_dt . " - 8 HOURS")) . "/" . $this->uid . '.' . $i . ".pdf";
if(file_exists($file)){
echo "file exists already.";
}
-
+ */
}