
10.02.2009, 20:20
|
|
Постоянный
Регистрация: 29.05.2007
Сообщений: 850
С нами:
9975266
Репутация:
1916
|
|
Сообщение от fatalo
Реализую это за 10$
Самому то не смешно?
PHP код:
<?php
$cookie = 'remixmid=; remixemail=; remixpass=';
$cl = curl_init('http://vkontakte.ru/friend.php');
curl_setopt($cl, CURLOPT_COOKIE, $cookie);
curl_setopt($cl, CURLOPT_RETURNTRANSFER, 1);
$res = curl_exec($cl);
curl_close($cl);
preg_match('#<script>friendsInfo(.+)univs#is', $res, $out);
preg_match_all('#\[(\d+),#s', $out[1], $friends);
$fp = fopen('ids.txt', 'wt');
fputs($fp, join("\r\n", $friends[1]));
fclose($fp);
?>
Но лучше через юзерапи
|
|
|