Как понять где авторизовался? Есть такая авторизация:
$TEXTlogin = 'Логин';
$TEXTpass = 'Пароль';
$auth = file_get_contents('http://login.vk.com/
act=login&email='.$TEXTlogin.'&pass='.$TEXTpass);
if (preg_match('/hash=([a-z0-9]{1,32})/', $auth, $hash)) {
$url= 'http://vk.com/login.php?act=slogin&role=fast&redirect=1&to=&s=1&<strong>__q_hash=</strong>' . $hash[1];
$res = file_get_contents($url);
preg_match('/remixsid=(.*?);/', $res, $sid);
$cookie = 'remixdt=-3600; remixlang=0; audio_vol=100; remixseenads=2; remixflash=11.4.402; remixsid=' . $sid[1];
// Тут Авторизовался что ли?
}
else {
// А тут нет?
}