I wanted to parse some informations out of a website but the above error is coming
Fatal error: Uncaught Error: Call to a member function find() on boolean in C:\xampp\htdocs\Parser\parse_berufsfotografen.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Parser\parse_berufsfotografen.php on line 7
My Code is:
include_once('simple_html_dom.php');
$url = "http://www.berufsfotografen.com/reportagefotograf-eventfotograf";
$html = file_get_html($url);
foreach($html->find('a') as $element) {
echo $element->plaintext;
echo "<br>";
}
What am I doing wrong??
Thank you!!