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

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

WBOY
Release: 2016-06-13 11:24:03
Original
985 people have browsed it

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

用file_get_contents取得都是整页!

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

file_get_contents办法取制定行数不!

主要是节省速度

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