@fputs($fp, $req[0]); //如果需要接收服务器返回信息,则 if($req[1]){ //接收信息 while($result = @fgets($fp, 1024)){ if(substr($result,3,1) == " ") { break; } }; if (!strstr($req[1],substr($result,0,3))){ $result_str.=$req[2].$result."<br>"; } } } //关闭连接 @fclose($fp); return $result_str; } ?>
(编辑:aniston)
|