How to 'explode' this page output

demetrius2009

New Member
I'm trying to parse the output of this page -> http://master.anti3d.com/raw_server_list2.phpThe documentation of that master server says that every entry is separated in this way\[quote\] Note: LF = LineFeed = 10 Format: serverName[LF]ipAddress:port;users/maxusers;gameCount;version;location[LF] Example: Server Name1 111.111.111.1111:27888;0/25;0.86;USA Server Name2 222.222.222.2222:27888;0/50;0.86;Canada\[/quote\]so I'm using OOCurl library for retrieving the site data using object oriented CURL\[code\]<?phpinclude_once('oocurl.php');$fetchmaster = new Curl('http://master.anti3d.com/raw_server_list2.php');$data = http://stackoverflow.com/questions/1994166/$fetchmaster->exec();$parsedata = explode('\n', $data);print_r($parsedata);?>\[/code\]Curl retrieves the page info but when I try to explode using \n 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, \n, linefeedwhat am I doing wrong?
 
Back
Top