File not getting read using file_get_html

可紊 提交于 2019-12-11 15:13:32

问题


I am using curl to store webpage in txt file and then reading the file to parse its content. For some website its running fine but for some websites it is(file_get_html) returning null. I have checked that txt file is generated with data but it is unable read the content.

For this website when i use direct link in file_get_html at that time also it returns null. I have added user agent but not working. Finally i removed all the content from file except one div tag at that time it read the content.

Kindly suggest why is it happening like this?

来源:https://stackoverflow.com/questions/13115793/file-not-getting-read-using-file-get-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!