$cookie=" йцуйцу; remixpass=йцуйцу; remixsid=йцуйцу8йцу"; $my_day="14.03.2009"; $diff=strtotime( date("d.m.Y") )-strtotime( $my_day ); $diff=$diff/(3600*24)*24; $status='%D0%9B%D1%8E%D0%B1%D0%BB%D1%8E%20Ubuntu%20%D1%83%D0%B6%D0%B5%20'.$diff.'%20%D1%87%D0%B0%D1%81%D0%BE%D0%B2'; echo $status; $ref='http://vkontakte.ru/'; $ch=curl_init ("http://vkontakte.ru/profile.php"); $ua = 'User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Widows NT)'; curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_REFERER, $ref); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch,CURLOPT_POSTFIELDS, 'setactivity='.$status.'&activityhash=12337'); $page = curl_exec($ch);