Снова доброго всем времени_)))
Как добавлять в други разобрался.
Встала другая проблема, скрипт авторизации, который работает нестабильно
PHP код:
if( $curl = curl_init() ){
curl_setopt($curl,CURLOPT_URL,'http://vkontakte.ru/login.php');
curl_setopt($curl, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($curl, CURLOPT_COOKIEFILE, "cookiefile");
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
curl_setopt($curl,CURLOPT_ENCODING,'gzip,deflate');
curl_setopt($curl,CURLOPT_USERAGENT,'Mozilla/8.1');
$html = curl_exec($curl);
if( $html = curl_exec($curl) ){
##############################
curl_setopt($curl, CURLOPT_POST, TRUE);
curl_setopt($curl, CURLOPT_POSTFIELDS, "op=a_login_attempt");
curl_setopt ($curl, CURLOPT_URL, 'http://vkontakte.ru/login.php');
$html = curl_exec($curl);
curl_setopt($curl, CURLOPT_POST, TRUE);
curl_setopt($curl, CURLOPT_POSTFIELDS, "act=login&success_url=&fail_url=&try_to_login=1&to=&vk=&email=".$mail."&pass=".$pass."&expire=");
curl_setopt ($curl, CURLOPT_URL, 'http://login.vk.com/');
$html = curl_exec($curl);
preg_match_all("|<input\stype=\'hidden\'\sname=\'s\'\sid=\'s\'\svalue=\'(.+)\'\s/>|U", $html, $ollo);
curl_setopt($curl, CURLOPT_POST, TRUE);
curl_setopt($curl, CURLOPT_POSTFIELDS, "op=slogin&redirect=1&expire=0&to=&s=".$ollo[1][0]);
curl_setopt ($curl, CURLOPT_URL, 'http://vkontakte.ru/login.php');
#############
$html = curl_exec($curl);
Суть нестабильности в том, что несколько акков по циклу обрабатывает нормально, а затем начинаются косяки.
На мой взгляд проблема ещё кроется в капче, она тут не обрабатывается.
По поводу скрипта и обработки капчи для ВК, кто знает, хелп плз....
Спасибо!