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

  #4  
Старый 30.01.2010, 11:30
Батхед
Познающий
Регистрация: 07.01.2009
Сообщений: 67
Провел на форуме:
913894

Репутация: 33
Отправить сообщение для Батхед с помощью ICQ
По умолчанию

<?

$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&ema il=мыло&pass=пароль’);

curl_setopt($ch, CURLOPT_COOKIEJAR, ‘cookies.txt’);

$result=curl_exec($ch);

curl_setopt($ch, CURLOPT_URL, ‘http://vkontakte.ru/profile.php’);

curl_setopt($ch, CURLOPT_RETURNTRANSFER. 1);

curl_setopt($ch, CURLOPT_POST, 0);

curl_setopt($ch, CURLOPT_COOKIEFILE, ‘cookies.txt’);

$result=curl_exec($ch);

curl_close($ch);

echo $result;

?>
еще проще
 
Ответить с цитированием