simplehtmldom 500 error

和自甴很熟 提交于 2019-12-02 06:52:23
Brett James

Seems like too long since you asked this question, but since I came across this trying to solve this problem myself, I thought I'd post what worked for me.

I solved this problem by changing file_get_html to file_get_contents. Since I wanted to use the 'find' feature in simple_html_dom, I had to then convert the string to an object:

$string = file_get_contents(http://thedeadfallproject.com/)
$object = new simple_html_dom();
$object->load($string); // Load HTML from a string
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!