推荐于2016-01-11
展开全部
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | [php]<? function get_contents( $url ){ $ch = curl_init(); curl_setopt ( $ch , CURLOPT_URL, $url ); curl_setopt ( $ch , CURLOPT_RETURNTRANSFER, 1); curl_setopt ( $ch , CURLOPT_TIMEOUT, 1000); $file_contents = curl_exec( $ch ); curl_close( $ch ); return $file_contents ; } $url = "http://play.kankan.xunlei.com/?hallid=2959" ; $con =get_contents( $url ); $con = str_replace ( "\"../" , "\"http://kankan.xunlei.com/" , $con ); echo $con ; ?>[/php] |
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询