php怎么获取网页

WBOY
Release: 2016-06-13 13:39:26
Original
757 people have browsed it

php如何获取网页
PHP里有什么类,可以获取网页内容,及http状态码。
比如200,表示成功

------解决方案--------------------
获取状态码echo curl_getinfo($curl,CURLINFO_HTTP_CODE);

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!