[BASE] file_get_contents通过代理获取网络地址内容

80477204 2013-04-26

$opt = array(

     'http'=>array(

           'method'=>'GET',

           'header'=>"Content-Type:text/html;charset=utf-8"

           'proxy'=>"http://192.168.1.1:8080",

           'timeout'=>30

      )

);

$context = stream_context_create($opt);

相关推荐