I have a form with textarea (links one per line):
<textarea class="form-control" rows="10" name="links" id="links"></textarea>
and the php code:
function scrape($link) {
$html = file_get_html("$link");
........
}
$links = $_POST["links"];
$lines = explode("\n", $links);
foreach($lines as $line){
scrape($line);
}
Error: Warning: file_get_contents(site.com): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found