Home >Backend Development >PHP Tutorial >php怎么获取网页

php怎么获取网页

WBOY
WBOYOriginal
2016-06-13 10:14:211066browse

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

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

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