Home >Backend Development >PHP Tutorial >远程获取页面,只取HTML前几行!怎么做

远程获取页面,只取HTML前几行!怎么做

WBOY
WBOYOriginal
2016-06-13 11:24:031003browse

远程获取页面,只取HTML前几行!如何做~
远程获取页面,只取HTML前几行!如何做~

用file_get_contents取得都是整页!

用什么函数来取可以自由选择!fsockopen经常让服务器当掉!

file_get_contents办法取制定行数不!

主要是节省速度

Statement:
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