[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: php code
johniek_comp
Всем привет! Проверьте этот код у себя:

<?php 
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");
$online=FALSE;
if(strpos($temp, "Персонаж сейчас в игре"))$online=TRUE;
if($online)echo("Online"); else echo("Offline");
?>
<?php

$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");
$online=FALSE;
if(strpos($temp, "Готовность армии: 100%"))$online=TRUE;
if($online)echo("Армия 100%"); else echo("Армия не полная");
?>
<?php

$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");
$online=FALSE;
if(strpos($temp, "Персонаж сейчас в бою"))$online=TRUE;
if($online)echo("battle"); else echo("no battle");
?>


У меня этот код не работает, всегда выдает значение else, наверно потому что он не видит данного текста на данной странице, а не видеть он может потому что кодировка коверкает русский текст? может надо что-то подкрутить в файле с кодировкой? или код все таки не правильный? текст на данных страницах всегда есть и по логике должно всегда выдавать первое значение...



Спустя 6 минут, 18 секунд (28.06.2011 - 10:25) XCross написал(а):
Зачем русские слова? Придумаю что-нибудь типа TRUE,FALSE,100% или подобное

Спустя 3 минуты, 17 секунд (28.06.2011 - 10:28) johniek_comp написал(а):
анг. вариант тоже не работает, проверь у себя вроде работало а потом перестало.

Спустя 11 минут, 42 секунды (28.06.2011 - 10:40) bulgakov написал(а):
Файл который вы получаете имеет кодировку cp1251 а файл скрипта который вы написали имеет кодировку юникод, в результате вы сравниваете юникодные строки с cp1251, я создал файл в кодировке cp1251 закинул ваш скрипт туда он мне вывел - OnlineАрмия не полнаяno battle. Не знаю то ли это что вам надо или нет.

Спустя 5 минут (28.06.2011 - 10:45) johniek_comp написал(а):
bulgakov
спасибо, я так и думал просто с утра голова не варит, сейчас попробую.

Спустя 5 минут, 35 секунд (28.06.2011 - 10:51) bulgakov написал(а):
Я взял на себя смелость немного переделать ваш код:



$temp = file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");

if(strpos($temp, "Персонаж сейчас в игре")){
echo "Online<br/>";
}
else {
echo "Offline<br/>";
}



if(strpos($temp, "Готовность армии: 100%")){
echo "Армия 100%<br/>";
}
else {
echo "Армия не полная<br/>";
}


if(strpos($temp, "Персонаж сейчас в бою")){
echo "battle<br/>";
}
else {
echo "no battle<br/>";
}


Спустя 23 минуты, 50 секунд (28.06.2011 - 11:14) johniek_comp написал(а):
не работает, не могу в cp1251 кодировку сделать? как её сделать?

Спустя 3 минуты, 30 секунд (28.06.2011 - 11:18) johniek_comp написал(а):
все работает, исправил, ваш код работает мой нет...smile.gif

Спустя 1 минута, 44 секунды (28.06.2011 - 11:20) bulgakov написал(а):
Карму мне карму))) Внимательнее с кодировками, я сам какое-то время мучился с ними...

Спустя 25 минут, 52 секунды (28.06.2011 - 11:46) johniek_comp написал(а):
bulgakov
карму канеш :)
взгляните ещё
<?php
$text = file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
preg_match('/Рыцарь:\s*\d\s*\(\d+.\d+\)/i', $text, $match);
echo $match[0];
?>


тоже не выводит...сделал по прошлому принципу не отступая вообщем )

Спустя 8 минут, 27 секунд (28.06.2011 - 11:54) bulgakov написал(а):
Гм... я с регулярными выражениями плохо знаком, может пишите какую строку вам нужно получить и поробуем решить это с помощью функций?

Спустя 2 минуты, 20 секунд (28.06.2011 - 11:56) bulgakov написал(а):
У вас в $match пустой массив, видимо что-то не так с регулярным выражением... я же говорю не разбираюсь в них..

Спустя 16 минут, 44 секунды (28.06.2011 - 12:13) johniek_comp написал(а):
bulgakov
вывести:
Гильдия Тактиков: 0 (130.15) +19.8

но числа постоянно меняются надо что бы ловило строку и выводило её

Спустя 13 минут, 30 секунд (28.06.2011 - 12:27) bulgakov написал(а):
Гм.. попробую сейчас что-нибудь придумать...

Спустя 4 минуты, 41 секунда (28.06.2011 - 12:31) kristall написал(а):
Точку забэкслешь между двумя \d+ в скобках.

Спустя 9 минут, 23 секунды (28.06.2011 - 12:41) bulgakov написал(а):
Очень грубое решение но вроде бы работает, во всяком случае выводит эту строку с цифрами.

$text = file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
$str = strip_tags(substr($text1, strpos($text1, 'Гильдия Тактиков'), 80));
echo $str;

Спустя 37 минут, 27 секунд (28.06.2011 - 13:18) amqpuTamuH4uk написал(а):
"Персонаж сейчас в игре", и "персонаж в бою" в одном и том же месте находятся или позиции меняются?

Спустя 13 минут, 52 секунды (28.06.2011 - 13:32) johniek_comp написал(а):
в том же месте где и когда в игре, без разницы все равно оно ищет именно строчку а не по положению, спасибо Михаилу Афанасичу smile.gif

Спустя 1 час, 35 минут, 26 секунд (28.06.2011 - 15:07) amqpuTamuH4uk написал(а):
strpos($temp, "<b>Готовность армии:</b> 100%")

Спустя 1 час, 16 минут, 3 секунды (28.06.2011 - 16:23) johniek_comp написал(а):
if(strpos($temp, "Персонаж сейчас в бою")){
echo <font color="#FF0000">"battle"</font>;


выдает ошибку синтаксиса "<"
хочу battle что бы показало красным цветом, не пойму где ошибка, подскажите.

Спустя 15 минут, 59 секунд (28.06.2011 - 16:39) kristall написал(а):
Одинарные кавычки у echo.

Спустя 32 секунды (28.06.2011 - 16:40) bulgakov написал(а):


if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">"battle"</font>'; // надо взять в одинарные кавычки


Спустя 51 секунда (28.06.2011 - 16:41) bulgakov написал(а):
Цитата
спасибо Михаилу Афанасичу

Гм... раз уж так то Александр Сергеевич)

Спустя 4 часа, 7 минут, 34 секунды (28.06.2011 - 20:48) walerus написал(а):
ТС, напиши ВСЕ что нужно распарсить со страницы 1н раз, чтоб кусками кода не кидаться, постараюсь помочь

Спустя 19 минут, 11 секунд (28.06.2011 - 21:08) johniek_comp написал(а):
Вот что у меня получилось...


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head>
<
title>Гильдия Тактиков</title>
</
head>
<
body>
<
a name="johniek_comp"></a><span
style="color: rgb(255, 0, 0);"></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><br>
</
span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"></span></span><br>
<
table class="wb"
style="border: 1px solid rgb(93, 65, 58); border-collapse: collapse;"
align="center" cellpadding="3" width="80%">
<
tbody>
<
tr style="background-color: rgb(102, 51, 51);">
<
span
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"
class="Apple-style-span"><span
style="font-weight: bold; color: rgb(51, 51, 255);"></span></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"></span></tr>
</
tbody>
</
table>
<
br>
<
span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;">
<
table class="wb"
style="border: 1px solid rgb(93, 65, 58); border-collapse: collapse;"
align="center" cellpadding="3" width="80%">
<
tbody>
<
tr>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="30">
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="150"> <img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=781261" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">_Um</a> <span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><b><img
src="http://im.heroeswm.ru/i/r4.gif" title="???
align="

middle="" border="0" height="15" width="15"></b></span></span></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
</
tbody>
</
table>
</
span></span>
<
table class="wb"
style="border: 1px solid rgb(93, 65, 58); border-collapse: collapse; background-color: rgb(255, 255, 255);"
align="center" cellpadding="3" width="80%">
<
tbody>
<
tr>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=522682");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?>
<br>
</
span></span></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="150"> <a
href="http://www.heroeswm.ru/clan_info.php?id=1254"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr';"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"> </span></span></span></a><a
href="http://www.heroeswm.ru/pl_info.php?id=522682" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Lord_Norad</a> <img
src="http://im.heroeswm.ru/i/r8.gif" title="i?
align="

middle="" border="0" height="15" width="15"></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=522682");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
</
tbody>
</
table>
<
span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;">
<
table class="wb"
style="border: 1px solid rgb(93, 65, 58); border-collapse: collapse; background-color: rgb(255, 255, 255);"
align="center" cellpadding="3" width="80%">
<
tbody>
<
tr>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;">
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></span></span></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="150"> <img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=1305405" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">johniek_comp</a> <img
src="http://im.heroeswm.ru/i/r1.gif" title="???"
align="middle" border="0" height="15" width="15"></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp = file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online </font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle </font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
$text = file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
$str = strip_tags(substr($text1, strpos($text1, 'Гильдия Тактиков'), 80));
echo $str;
?>
</td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <a
href="http://www.heroeswm.ru/pl_info.php?id=2002715" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Chicony96</a> <img
src="http://im.heroeswm.ru/i/r5.gif" title="&agrave;??"
align="middle" border="0" height="15" width="15"></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2002715");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1682245");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=1682245" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">SuperAlina</a> <img
src="http://im.heroeswm.ru/i/r6.gif" title="????"
align="middle" border="0" height="15" width="15"></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1682245");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=522682");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="150"> <a
href="http://www.heroeswm.ru/pl_info.php?id=522682" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Lord_Norad</a> <img
src="http://im.heroeswm.ru/i/r8.gif" title="i?
align="

middle="" border="0" height="15" width="15"></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=522682");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2033172");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <a
href="http://www.heroeswm.ru/pl_info.php?id=2033172" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">SHAXTAMA</a> <img
src="http://im.heroeswm.ru/i/r4.gif" title="???
align="

middle="" border="0" height="15" width="15"></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2033172");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
</
tbody>
</
table>
</
span></span></span> <span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;">
<
table class="wb"
style="border: 1px solid rgb(93, 65, 58); border-collapse: collapse;"
align="center" cellpadding="3" width="80%">
<
tbody>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1725644");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=1725644" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">DRUGnBASS</a> </span></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><a
href="http://www.heroeswm.ru/clan_info.php?id=713"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr';"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><img
src="http://im.heroeswm.ru/i/r6.gif" title="????"
align="middle" border="0" height="15" width="15"></span></span></span></span></span></a></span></span></span></span></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1725644");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?>
</td>
</
tr>
<
tr>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=807334");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"
width="150"> <a
href="http://www.heroeswm.ru/clan_info.php?id=5385"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr';"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"></span></span></span></span></span></a><a
href="http://www.heroeswm.ru/pl_info.php?id=807334" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Fallkon</a> <img
src="http://im.heroeswm.ru/i/r6.gif" title="????"
align="middle" border="0" height="15" width="15"></td>
<
td class="wblight"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(245, 243, 234);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=807334");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2374623");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <a
href="http://www.heroeswm.ru/clan_info.php?id=4414"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr';"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"></span></span></span></span></span></a><a
href="http://www.heroeswm.ru/pl_info.php?id=2374623" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Gektor1981</a> <img
src="http://im.heroeswm.ru/i/r1.gif" title="???"
align="middle" border="0" height="15" width="15"></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2374623");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2565759");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <a
href="http://www.heroeswm.ru/clan_info.php?id=3583"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr';"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"></span></span></span></span></span></a><img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=2565759" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">assasin089</a> <img
src="http://im.heroeswm.ru/i/r1.gif" title="???"
align="middle" border="0" height="15" width="15"></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2565759");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; } ?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1772580");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><b><img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"></b></span></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"> <a
href="http://www.heroeswm.ru/pl_info.php?id=1772580" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Mr_Lubowski</a> <img
src="http://im.heroeswm.ru/i/r2.gif" title="&Upsilon;???? align="
middle="" border="0" height="15" width="15"></span></span></span></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1772580");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1255502");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=1255502" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">Sttrannik</a> <img
src="http://im.heroeswm.ru/i/r6.gif" title="????"
align="middle" border="0" height="15" width="15"></span></span></span></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=1305405");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; }
if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
<
tr>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="30"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><php
title="$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=781261"); if(strpos($temp, "Персонаж сейчас в игре")){ echo "Online"; } else { echo "Offline"; } "
xmlns="http://disruptive-innovations.com/zoo/nvu"><?php $temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2207042");
if(strpos($temp, "[12]")){
echo "12";
}
else {
echo "-"; }
?></php></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"
width="150"> <span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="border-collapse: collapse; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; font-size: 12px;"><img
src="http://im.heroeswm.ru/i/transparent.gif" alt=""
align="middle" height="15" width="2"><a
href="http://www.heroeswm.ru/pl_info.php?id=2207042" class="pi"
style="font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; text-decoration: none;">-_1Death1_-</a> <img
src="http://im.heroeswm.ru/i/r6.gif" title="????"
align="middle" border="0" height="15" width="15"></span></span></span></span></span></td>
<
td class="wbwhite"
style="border: 1px solid rgb(93, 65, 58); font-size: 9pt; color: rgb(89, 44, 8); font-family: verdana,geneva,'arial cyr'; border-collapse: collapse; background-color: rgb(255, 255, 255);"> 
<?php
set_time_limit(7000);
$temp=file_get_contents("http://www.heroeswm.ru/pl_info.php?id=2207042");
if(strpos($temp, "Персонаж сейчас в игре")){
echo '<font color="#0000ff">Online</font>';
}
else {
echo '<font color="#c0c0c0">Offline </font>'; } if(strpos($temp, "Персонаж сейчас в бою")){
echo '<font color="#FF0000">battle</font>';
}
if(strpos($temp, "100%")){
echo '<font color="#FF6A6A">heart + </font>';
}
else {
echo '<font color="#7EC0EE">heart - </font>'; }
?></td>
</
tr>
</
tbody>
</
table>
</
span></span>
</
body>
</
html>

Спустя 6 минут, 40 секунд (28.06.2011 - 21:14) bulgakov написал(а):
ААААААААА Зачем это все было выводить? У меня тупое пролистывание заняло много времени и я еще и не читал че вы тут наплодили) Пожалуйста ОГРОМНАЯ ПРОСЬБА на будущее показывайте необходимый минимум для того что бы разобраться в проблеме!

Спустя 3 минуты, 31 секунда (28.06.2011 - 21:18) bulgakov написал(а):
Вот что заметил - if(strpos($temp, "100%")){ 100% встречается в коде страницы 31 раз, не только в информационном тексте но и в самой разметке страницы, может там сделать - if(strpos($temp, "Готовность армии: 100% "))?

Спустя 1 минута, 35 секунд (28.06.2011 - 21:19) bulgakov написал(а):
Или может я уже не понимаю логики работы скрипта... ну правда уж очень там все намешано, отделите котлеты от мух...

Спустя 4 минуты, 52 секунды (28.06.2011 - 21:24) walerus написал(а):
Во первых, код заверни в "свернутый текст", это капец!, во вторых он работает, долго, и в третьих неправильно...

johniek_comp [12] [Рыцарь] - в игре, скрипт твой отдал - Offline heart + ...
Fallkon [13] [Темный эльф] - в игре, скрипт твой отдал - Offline heart + ...
Gektor1981 [13] [Рыцарь] - в игре, скрипт твой отдал - Offline heart + ...

И так далее...., и к чему там раноцветные полосочки ?, причем на половину...

Спустя 53 секунды (28.06.2011 - 21:25) walerus написал(а):
bulgakov Попросил ТС, написать что нужно, помогу, ну а тут же.... тихий ужОс ))

Спустя 33 минуты, 14 секунд (28.06.2011 - 21:58) johniek_comp написал(а):
м-да перестарался, не пойму почему не выводит здоровье, если напишу Готовность армии: 100% выводит елсе хотя на странице 100% здоровья.
а вообще это этот долбаный редактор, красный цвет мне выделить 6 строк захотел! ну я разумеется его угомонил!
вот что получилось:

http://www.mistomebel.kiev.ua/test.php

а значение гильдии тактиков не выводит не через регулярку и не через функцию.

Спустя 7 минут, 32 секунды (28.06.2011 - 22:06) bulgakov написал(а):
Ужасно тормозит... вот только один вопрос.... гм... может я чего не понимаю, зачем такой изврат с парсингом сайта и использованием этих же значений просто в виде таблицы, уж лучше на родном сайте все смотреть

Спустя 8 минут, 40 секунд (28.06.2011 - 22:14) walerus написал(а):
Елы палы, ну сколько можно, тормозит все что можно с моими 30 мегабитами канала - слайд шоу какое то, ТС, у тебя там все очень ОЧЕНЬ тормозит. Последний раз предлагаю помощь, а на это детище страшно смотреть ...

Спустя 5 минут, 12 секунд (28.06.2011 - 22:20) johniek_comp написал(а):
walerus
судя по твоей карме ты много кому помог, что я то могу? мне только код нормальный и все и вроде уже все сделал.

Если кто не заметил у меня там set_time_limit десяточек раз встречается smile.gif

Спустя 23 минуты, 30 секунд (28.06.2011 - 22:43) walerus написал(а):
Цитата (johniek_comp @ 28.06.2011 - 19:20)
walerus
судя по твоей карме ты много кому помог, что я то могу? мне только код нормальный и все и вроде уже все сделал.

Если кто не заметил у меня там set_time_limit десяточек раз встречается smile.gif

в 100й раз у тебя спрашиваю, какие данные нужно выводить, я бы уже написал скрипт.

Спустя 24 минуты, 9 секунд (28.06.2011 - 23:07) johniek_comp написал(а):
walerus
Нужно чтобы показывало :
Когда персонаж в игре.(Написано: Персонаж сейчас в игре)
Когда персонаж не в игре.(В последний раз был)
Когда персонаж в бою.(Персонаж сейчас в бою)
Когда у него 100% здоровья.(Готовность армии: 100%)

Это мне нужно что бы противников отслеживать.

С чего начать уже есть выше, можешь попробовать.

Спасибо огромное!

Спустя 11 минут, 49 секунд (28.06.2011 - 23:19) walerus написал(а):
<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<
title>Гильда </title>
</
head>
<
body>

<?php
set_time_limit(0);
error_reporting(E_ALL);

$array_user = array('781261', '2002715', '1254'); // Сюда ID всех юзеров гильдии

?>
<table border="1" style="border-collapse: collapse">
<
tr>
<
td align="center"><b><font size="4">Лвл</font></b></td>
<
td align="center"><b><font size="4">Флаг</font></b></td>
<
td align="center"><b><font size="4">Ник</font></b></td>
<
td align="center"><b><font size="4">Расса</font></b></td>
<
td align="center"><b><font size="4">Статус игрока</font></b></td>
<
td align="center"><b><font size="4">Статус армии</font></b></td>
</
tr>
<?php
// Парсим данные
foreach($array_user as $user)
{
$file_get_contents = file_get_contents('http://www.heroeswm.ru/pl_info.php?id='.$user);
$file_get_contents = ( iconv('windows-1251', 'utf-8', str_replace(' ', ' ', $file_get_contents )) ); flush();

preg_match('~<!-- big table -->.*<td class=wb colspan=2 valign=middle>(.*)</td>.*<!-- big table -->~iUs', $file_get_contents, $match);flush();
preg_match('~<tr><td>.*<b>(.*)\[(.*)\].*<img src=\'(.*)\'.*title=\'(.*)\'.*~', $match[1], $match_user);flush();

preg_match('~<td valign=top class=wb>(.*)</td>~s', $file_get_contents, $match_user_status);flush();
preg_match('~</font><BR><BR> »(.*)<BR> »~iUs', $match_user_status[1], $match_user_army_status);flush();
preg_match('~<td align=right>(.*)</td>~', $match_user_status[1], $match_user_status_value);flush();

$user_name = trim( $match_user[1] );
$user_name_lvl = trim( $match_user[2] );

$user_ico = trim( $match_user[3] );
$user_race = trim( $match_user[4] );
$user_status = '<b>' .trim( strip_tags($match_user_status_value[1]) ). '</b>';
$user_army_status = trim( $match_user_army_status[1] );

?>
<tr>
<
td align="center"><?php echo $user_name_lvl;?></td>
<
td align="center"><img src="<?php echo $user_ico;?>"></td>
<
td align="left"> <?php echo $user_name;?> </td>
<
td align="left"> <?php echo $user_race;?> </td>
<
td align="left"> <?php echo $user_status;?> </td>
<
td align="left"> <?php echo $user_army_status;?> </td>
</
tr>
<?
flush();
}
?>
</table>
</
body>
</
html>

Малость покороче чем у тебя, ты уж прости...
В строчке

$file_get_contents = ( iconv('windows-1251', 'utf-8', str_replace(' ', ' ', $file_get_contents )) ); flush();

стоит замена не пустоты на пустоту, а
& nbsp ;
на пробел...

Спустя 9 часов, 30 минут, 44 секунды (29.06.2011 - 08:50) johniek_comp написал(а):
error_reporting(E_ALL);


а это что за строка, что значит?

Спустя 1 минута, 44 секунды (29.06.2011 - 08:52) johniek_comp написал(а):
всю ночь твой код разбирал, толково smile.gif в карму +

Спустя 3 минуты, 50 секунд (29.06.2011 - 08:55) SoMeOnE написал(а):
johniek_comp
Вывод ошибок

Спустя 4 минуты, 9 секунд (29.06.2011 - 09:00) Игорь_Vasinsky написал(а):
error_reporting(E_ALL);

как правило ставиться в начале кода, для вывода ошибок и нотисов.

В моём журнале - одна из первых записей - там подробнее.

Спустя 2 минуты, 1 секунда (29.06.2011 - 09:02) johniek_comp написал(а):
http://mistomebel.kiev.ua/test.php
44 строка
$user_army_status = trim( $match_user_army_status[1] );


что с ней?

Спустя 2 минуты, 1 секунда (29.06.2011 - 09:04) johniek_comp написал(а):
а где почитать про все эти file_get_contents например и другие не знаю как их назвать даже, что за слово что означает что делает?

Спустя 52 минуты, 38 секунд (29.06.2011 - 09:56) walerus написал(а):
php.su в основном, но лучше купи книжку )

Спустя 5 минут, 39 секунд (29.06.2011 - 10:02) walerus написал(а):
Цитата (johniek_comp @ 29.06.2011 - 06:02)
http://mistomebel.kiev.ua/test.php
44 строка
$user_army_status = trim( $match_user_army_status[1] );


что с ней?

С ней все в порядке, скрипт, т.е. index.php, должен быть сохранен в формате utf-8, а не в каком либо другом, у тебя он сохранен в формате windows-1251, по этому выдаются квадраты, и регулярка не срабатывает, о чем и пишется
Notice: Undefined offset: 1 in /home/mistomeb/public_html/test.php on line 44

Спустя 1 час, 25 минут, 27 секунд (29.06.2011 - 11:27) johniek_comp написал(а):
как в ютф его сделать через notepad++?

Спустя 20 минут, 56 секунд (29.06.2011 - 11:48) SoMeOnE написал(а):
johniek_comp
в меню есть таб encoding. Ставь всегда encode in utf-8 without bom
И в settings->prefereces->new doc тоже надо поставить utf-8 without bom

Спустя 1 час, 13 минут, 29 секунд (29.06.2011 - 13:02) johniek_comp написал(а):
walerus
http://www.mistomebel.kiev.ua/test.php

4-ю колонку нужно убрать(расса это 2-я колонка), и армия не отображается можешь сделать?
и чтобы в колонке ник нейма была ссылка на персонажа а так получается только текст без ссылки как же его искать потом, нельзя на перса нажать, можешь реализовать?
и ещё добавь регулярку на вывод такой строки" Гильдия Тактиков: 0 (132.55) +17.4"

Спустя 1 час, 29 минут, 35 секунд (29.06.2011 - 14:31) walerus написал(а):
Странно все у тебя, у меня все отображается...

Свернутый текст
http://softilka.com/php_forum/
, если оно, то скрипт
Свернутый текст

<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<
title>Гильда </title>
</
head>
<
body>

<?php
set_time_limit(0);
error_reporting(E_ALL);

$array_user = array('781261', '2002715', '1254'); // Сюда ID всех юзеров гильдии

?>
<table border="1" style="border-collapse: collapse">
<
tr>
<
td align="center"><b><font size="4">Лвл</font></b></td>
<
td align="center"><b><font size="4">Флаг</font></b></td>
<
td align="center"><b><font size="4">Ник</font></b></td>
<
td align="center"><b><font size="4">Статус игрока</font></b></td>
<
td align="center"><b><font size="4">Статус армии</font></b></td>
<
td align="center"><b><font size="4">Гильдия</font></b></td>
</
tr>
<?php
// Парсим данные
foreach($array_user as $user)
{
$file_get_contents = file_get_contents('http://www.heroeswm.ru/pl_info.php?id='.$user);
$file_get_contents = ( iconv('windows-1251', 'utf-8', str_replace(' ', ' ', $file_get_contents )) ); flush();

preg_match('~<!-- big table -->.*<td class=wb colspan=2 valign=middle>(.*)</td>.*<!-- big table -->~iUs', $file_get_contents, $match);flush();
preg_match('~<tr><td>.*<b>(.*)\[(.*)\].*<img src=\'(.*)\'.*title=\'(.*)\'.*~', $match[1], $match_user);flush();
preg_match('~Гильдия Тактиков:(.*)</font>~iUs', $match[0], $match_user_taktik);flush();

preg_match('~<td valign=top class=wb>(.*)</td>~s', $file_get_contents, $match_user_status);flush();
preg_match('~</font><BR><BR> »(.*)<BR> »~iUs', $match_user_status[1], $match_user_army_status);flush();
preg_match('~<td align=right>(.*)</td>~', $match_user_status[1], $match_user_status_value);flush();

$user_name = "<a target=\"_blank\" href=\"http://www.heroeswm.ru/pl_info.php?id=".$user."\">".trim( $match_user[1] )."</a>";
$user_name_lvl = trim( $match_user[2] );

$user_ico = trim( $match_user[3] );
$user_race = trim( $match_user[4] );
$user_status = '<b>' .trim( strip_tags($match_user_status_value[1]) ). '</b>';
$user_army_status = trim( $match_user_army_status[1] );
$user_taktik = trim( $match_user_taktik[0] );

?>
<tr>
<
td align="center"><?php echo $user_name_lvl;?></td>
<
td align="center"><img src="<?php echo $user_ico;?>"> - <?php echo $user_race;?></td>
<
td align="left"> <?php echo $user_name;?> </td>
<
td align="left"> <?php echo $user_status;?> </td>
<
td align="left"> <?php echo $user_army_status;?> </td>
<
td align="left"> <?php echo $user_taktik;?> </td>
</
tr>
<?
flush();
}
?>
</table>
</
body>
</
html>


Спустя 35 минут, 38 секунд (29.06.2011 - 15:07) johniek_comp написал(а):
http://www.mistomebel.kiev.ua/test.php

сохрани свой файл где скрипт лежит и выложи, т.к. кодировка меня сильнее smile.gif

а вот смотри там есть артефакты на игроках можно регуляркой смотреть одеты ли все ячейки smile.gif

Спустя 1 час, 28 минут, 23 секунды (29.06.2011 - 16:35) walerus написал(а):
johniek_comp
Вываливай мыло свое или стучи в аську мне, ID в профиле, вышлю файл.
Цитата
а вот смотри там есть артефакты на игроках можно регуляркой смотреть одеты ли все ячейки smile.gif

можно все )), если это был вопрос.

Спустя 15 минут, 27 секунд (29.06.2011 - 16:51) johniek_comp написал(а):
у меня и мыла то нет, сейчас найду что-нить:
vladmebel95@gmail.com

так можешь и что бы одеты ли артефакты сделать?

Спустя 6 часов, 51 минута, 42 секунды (29.06.2011 - 23:43) walerus написал(а):
Отправил

Спустя 10 часов, 29 минут, 49 секунд (30.06.2011 - 10:12) johniek_comp написал(а):
вот нашел про них все, если кому то интересно про них почитать вот:
http://php.su/lessons/?lesson_17


_____________
user posted image
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.