PHP使用curl调用Socks5代理IP的代码样例

温馨提示:
1. 此样例同时支持访问http和https网页
2. curl不是php原生库,需要安装才能使用:
Ubuntu/Debian系统:apt-get install php5-curl
CentOS系统:yum install php-curl
3. "用户名+密码"授权时,"用户名"为实例id,"密码"则是实例id后面的八位数密码


参考