http://master.anti3d.com/raw_server_list2.php
该总服务器的文件指出,每一条目都以这种方式分开。
注:LF = LineFeed = 10
Format: serverName[LF]ipAddress:port;users/maxusers;gameCount;version;location[LF]
例:
服务器名称
111.11.1111:27888;0/25;0.86;USA
服务器名称
222.2222:27888;0/50;0.86;加拿大
利用OOCurl图书馆,用面向标的CURL检索现场数据
<?php
include_once( oocurl.php );
$fetchmaster = new Curl( http://master.anti3d.com/raw_server_list2.php );
$data = $fetchmaster->exec();
$parsedata = explode(
, $data);
print_r($parsedata);
?>
Curl retrieves the page info but when I try to explode using character or newline, ASCII 10, it just doesn t works. I downloaded the page output and saw it with an hex editor and it s using x0a, , linefeed
我做了什么错误?