<?
function curlGet($url) {
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
$out = curl_exec($ch);
curl_close ($ch);
return $out;
}
$urla=$_SERVER['PHP_SELF']."?".$_SERVER["QUERY_STRING"];
$url="http://zb.tll888.com".$urla;
echo curlGet($url);
?>
500就是有错误了,
看看php错误日志报的什么错
或者修改php的错误级别,这样报错的话会显示出来,而不是显示500
curl_error()看看有没有错误