用于多个URL的PHP​​ DOM解析器?

I've tried loads of different techniques to load and crawl multiple urls, all of them are not working and I even get apache errors.

Right now I'm trying just to load URLs from file and it's not working, everyhing seems fine to me here, so here's the code:

<?php
include_once('simple_html_dom.php');
$target_url = "array.htm";
$html = new simple_html_dom();
$links = $html->load_file($target_url);

foreach ($links as $link)
{
    echo $link;
}

?>

Error I get Warning: Invalid argument supplied for foreach() in C:\xampp2\htdocs\copy.php on line 7