$random = file_get_contents('http://bash.org.ru/random'); preg_match_all('#<div class="vote">(.*?)</div>(.*?)<div>(.*?)</div>#is', $random, $ma4); print_r($ma4[3]); $ma4=(тут надо присвоить ma4 формат для пересылки постом) //все что ниже работает 100% $hd2="setactivity=\nand $ma4 &activityhash=xxxxxxxxxxxxxxxxx"; $hd="POST http://vkontakte.ru/profile.php HTTP/1.0 Accept: */* Accept-Language: ru Referer: http://vkontakte.ru/profile.php Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: vkontakte.ru Content-length: ".strlen($hd2)."\r\nPragma: no-cache Cookie: $cookie\r\n\r\n"; fputs($fp,$hd);fputs($fp,$hd2);fgets($fp, 1024); fclose($fp); $fp=fsockopen('vkontakte.ru',80); $hd="GET http://vkontakte.ru/profile.php HTTP/1.0 Accept: */* Accept-Language: ru Referer: http://vkontakte.ru/profile.php Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: vkontakte.ru Cookie: $cookie\r\n\r\n"; fputs($fp,$hd);fgets($fp,1024);fclose($fp);