getting an error reading simpleDomObject
问题 I have the following template file, named 'test.html' <div class='title'>TEST</div> And I have the following PHP code: <? include "simplehtmldom/simple_html_dom.php"; $dom = file_get_html( "test.html" ); echo $dom->outertext; ?> So far so good, this displays the file test.html. But when I try to change something I get an error: <? include "simplehtmldom/simple_html_dom.php"; $dom = file_get_html( "test.html" ); $dom->find('.title')->innertext = "changed"; echo $dom->outertext; ?> Warning :