file_get_html显示对未定义函数的致命错误调用 [英] file_get_html displays Fatal Error Call to undefined function

查看:64
本文介绍了file_get_html显示对未定义函数的致命错误调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码来解析另一个站点的HTML,但是它显示了致命错误:

I used the following code to parse the HTML of another site but it display the fatal error:

$html=file_get_html('http://www.google.co.in');

严重错误:调用未定义函数file_get_html()

Fatal error: Call to undefined function file_get_html()

推荐答案

您确定已下载并包含 php简单的html dom解析器?

这篇关于file_get_html显示对未定义函数的致命错误调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆