Home > Backend Development > PHP Tutorial > php file_get_contents问题

php file_get_contents问题

WBOY
Release: 2016-06-23 14:07:53
Original
877 people have browsed it

为什么用php的file_get_contents函数无法抓取到http://info.sporttery.cn/mixed/mixed.htm?gameIndex=1里面相应的值:

请大家帮看看。


回复讨论(解决方案)

他的数据是用 js 动态填入的,file_get_contents 不会执行 js 代码,当然就得不到

那有什么办法能够得到吗

第一段 js 中好像就有数据吧
你分析一下代码,应该能得到算法

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template