php简单的html dom脚本不接受自己的网站

With the following script: http://simplehtmldom.sourceforge.net/

The code to include my own page gives the following error:

[Tue Dec 30 21:54:47 2014] [error] [client 84.241.198.67] FastCGI: server "/var/run/php-fpm/php54/php-cgi" stderr: in xxxx/simple_html_dom.php on line 75
[Tue Dec 30 21:54:47 2014] [error] [client 84.241.198.67] FastCGI: server "/var/run/php-fpm/php54/php-cgi" stderr: PHP message: PHP Fatal error: Call to a member function find() on a non-object in xxxxx/www/design/header.php on line 46

This is the code I use. (When I use 'http://www.google.com' for example it does work. But with my own URL it keeps giving errors (not loading the page)

$html = file_get_html('website/verslagdetail/2');

// find all link
foreach($html->find('h3') as $e) 
echo $e->innertext . '<br>';

What can be the problem? I want to use this to create a nice for each page and let this code decide the title

It just looks like this is a path issue. $html is non reference likely meaning that file_get_html() on the path "website/verslagdetail/2" didn't resolve to anything. You most likely need to fix that relative path or use an absolute path