<?php
include('../simple_html_dom.php');
$fname = "http://www.myurl.com";
$html = file_get_html($fname);
$divs = $html->find('h6');
foreach($divs as $element)
{
$title = $element->find('a', 0)->plaintext;
echo $title.'<br>';
}
echo '<br>';
?>
I got this error:
"failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in......."
My url is very length, its actual length is 750 characters. if I use wget it show "file name too long"
How can I fix it? I need it to work with simple dom