PHP: <? class my_curl { var $ch; function init() { $this->ch = curl_init(); curl_setopt($this->ch, CURLOPT_COOKIESESSION, TRUE); curl_setopt($this->ch, CURLOPT_HEADER, FALSE); curl_setopt($this->ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($this->ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, TRUE); } function close() { curl_close($this->ch); } function get($url) { curl_setopt($this->ch, CURLOPT_HTTPGET, TRUE); curl_setopt($this->ch, CURLOPT_URL, $url); return curl_exec($this->ch); } function post($url, $post) { curl_setopt($this->ch, CURLOPT_POST, TRUE); curl_setopt($this->ch, CURLOPT_POSTFIELDS, $post); curl_setopt($this->ch, CURLOPT_URL, $url); return curl_exec($this->ch); } } echo '<table width=600 cellspacing=1 cellpadding=1 bgcolor=#efefef><tr bgcolor=#f8f8f8><td width=100><b>Персонаж</b></td><td><b>Статус</b></td><td><b>Онлайн</b></td><td><b>Местоположение</b></td><td><b>Бой</b></td></tr>'; $clans = fopen("http://www.obi-wan.ru/1/sostav3.txt","r"); while ($data = fgetcsv($clans, 1000, "|")) { for ($c=0;$c<count($data);$c++) { if ($c < 0) {$data[$c] = "<font color=green>$data[$c]</font>";} if ($c == 1) { $curl = new my_curl(); $curl->init(); $result = $curl->get('http://www.neverlands.ru/modules/api/info.cgi?playerid='.$data[0].'&info=1'); $curl->close(); ### Сюда надо написать функцию, которая будет читать результаты запроса $result и разделять его, чтобы каждое слово можно было использовать как $res[1] (первое слово), $res[2] (второе слово) и т.д. т.е. похожий метод как у fgetcsv() $nick='<a href="http://www.neverlands.ru/pinfo.cgi?'.$res[2].'" target=_blank><img src=http://image.neverlands.ru/chat/info.gif border=0></a>'; $uroven=$res[3]; $calign = '<img src=http://image.neverlands.ru/signs/chaoss.gif>'; $znak = '<img src="http://image.neverlands.ru/signs/c269.gif" border=0>'; $status=$res[8]; if ($res[14] == '1') $onlain= 'Персонаж Онлайн'; else $onlain= 'Персонаж Оффлайн'; $mesto=$res[15]; if ($res[16] == '0') $boj = ''; else $boj= '<a href="http://www.neverlands.ru/logs.fcg?fid='.$res[16].'" target=_blank>В бою</a>'; echo "<tr bgcolor=#ffffff><td width=100><b>$znak$calign$nick$uroven</b></td><td><b>$status</b></td><td><b>$onlain</b></td><td><b>$mesto</b></td><td><b>$boj</b></td></tr>"; } } } fclose($clans); echo '</table>'; ?> То что закомментированно и является вопросом)