помогите сделать
-
<? set_time_limit(0); /* Класс информации об игроке */ function getpage($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER, 1); $result = curl_exec($ch); curl_close($ch); return $result;} { $get = getpage('http://109.234.155.196/prison/universal.php? method=getInfo&user=114447244&key=88bfca127e819e6a12f474c51365b7'); $get2 = getpage('http://109.234.155.196/prison/universal.php? method=getInfo&user=114447244&key=88bfca127e819e6a12fa7474c51365b7&method=getBoss&'); //Парсим нужные данные об игроке preg_match_all("/<currentDamage>(.*?)<\/currentDamage>/",$get2,$matches); $current = $matches[1][0]; } { $log = fopen("logfiles".$vkid.".log", 'a'); $date = date("H:i:s"); fwrite($log, " $date / Нанесли $current едениц урона\r\n"); fclose($log); } ?>
чтобы со списком фейков работал работал у меня что то не получается помогите плиз