}
- print_R($this->images);exit;
return $dom->saveHTML();
function fetchImage($url)
{
- print_R($url);
- echo "\n";
if($this->debug) {
echo "FETCH : $url\n";
}
$a = new HTTP_Request($url);
$a->sendRequest();
file_put_contents($cache .'.data', $a->getResponseBody());
- print_R($a->getResponseBody());
- echo "\n";
+
$mt = $a->getResponseHeader('Content-Type');
require_once 'File/MimeType.php';