Whenever the voltage exceeds a certain threshold (perhaps useful for non-browser users if (preg_match("@.*(get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query($query); $result_html = ''; function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == .