PHP-Curl使用SOCKS5代理(需要账号密码验证则用下述代码,不需要的就把后两句注释掉):

//SOCKS5代理
$proxy = "https://IP:端口";
curl_setopt ($ch, CURLOPT_PROXY, $proxy);[......]

阅读全文