<BR>function geturl($url) <BR>{ <BR>$ch = curl_init(); <BR>$timeout = 5; <BR>curl_setopt($ch, CURLOPT_URL, $url); <BR>curl_setop<em>¥本文来%源[email protected]搞@^&代*@码)网5</em><strong>搞gaodaima代码</strong>t($ch, CURLOPT_RETURNTRANSFER, 1); <BR>curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); <BR>//在需要用户检测的网页里需要增加下面两行 <BR>//curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); <BR>//curl_setopt($ch, CURLOPT_USERPWD, US_NAME.”:”.US_PWD); <BR>$contents = curl_exec($ch); <BR>curl_close($ch); <BR>$contents = str_replace("document.write('","",$contents); <BR>$contents = str_replace("');","",$contents); <BR>$contents = str_replace("\\n","",$contents); <BR>$contents = str_replace("\\","",$contents); <BR>echo $contents; <BR>} <BR>