且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHP Simple HTML DOM解析器的奇怪错误

更新时间:2023-02-26 10:32:16

此错误通常表示$ html不是对象.

This error usually means that $html isn't an object.

奇怪的是,您说这似乎行得通.如果输出$ html会怎样? 我以为网址不可用,而$ html为空.

It's odd that you say this seems to work. What happens if you output $html? I'd imagine that the url isn't available and that $html is null.

看起来这可能是解析器中的错误.有人提交了 bug 并添加了一个检查他的代码以解决该问题.

Looks like this may be an error in the parser. Someone has submitted a bug and added a check in his code as a workaround.