}
- print_R($this->images);exit;
return $dom->saveHTML();
function fetchImage($url)
{
- print_R($url);
- echo "\n";
if($this->debug) {
echo "FETCH : $url\n";
}
// unix only...
$uinfo = posix_getpwuid( posix_getuid () );
$user = $uinfo['name'];
- print_R('run');
- echo "\n";
+
$cache = ini_get('session.save_path')."/Pman_Core_Mailer-{$user}/" . md5($url);
if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
$ret = json_decode(file_get_contents($cache), true);