Показать сообщение отдельно

  #2  
Старый 08.04.2010, 10:26
Compton
Участник форума
Регистрация: 31.01.2010
Сообщений: 170
С нами: 8566257

Репутация: 63
По умолчанию

PHP код:
<?php
$mail
='типа мыло';
$pass='типа пасс';
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://vkontakte.ru/login.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'act=login&try_to_login=1&email='.$mail.'&pass='.$pass.'');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_exec($ch);
curl_close($ch);
?>
 
Ответить с цитированием