//设置代理服务器 $opts = array('http'=>array('request_fulluri'=>true)); $cOntext= stream_context_create($opts); $cOntent= file_get_contents($url,false,$context);