Home > Backend Development > PHP Tutorial > PHP怎么在多IP服务器中切换IP采集数据

PHP怎么在多IP服务器中切换IP采集数据

WBOY
Release: 2016-06-13 12:44:27
Original
1144 people have browsed it

PHP如何在多IP服务器中切换IP采集数据?
在PHP 中使用CURL 采集某URL数据,由于服务器拥有有多个IP,所以想在CURL中切换不同的IP来采集以防止被封,但是发现curl_setopt($ci, CURLOPT_PROXY, '1.1.1.1');  这种不可用

请问有什么解决办法,或者不使用curl 用snoopy等也可以,请大家指教

40
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