Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
$mail_user = 'mail@mail.ru';
$pass_user = 'pass';
$handle = curl_init();
curl_setopt($handle, CURLOPT_VERBOSE, false);
curl_setopt($handle, CURLOPT_HEADER, true);
curl_setopt($handle, CURLOPT_REFERER, 'http://vkontakte.ru/');
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_URL, 'http://vkontakte.ru/login.php');
curl_setopt($handle, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0 ');
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, 'email='.$mail_user.'&pass='.$pass_user);
$response = curl_exec($handle);
curl_close($handle);
preg_match_all("#(remixmid=)(.*?)(;)(.*?)(remixsid=)(.*?)(;)#si", $response, $seach_1);
$remixmid = $seach_1['2']['0'];
$remixsid = $seach_1['6']['0'];
$handle = curl_init();
curl_setopt($handle, CURLOPT_COOKIE, 'remixlang=0; remixchk=5; remixmid='.$remixmid.'; remixemail='.$mail_user.'; remixpass='.md5($pass_user).'; remixsid='.$remixsid);
curl_setopt($handle, CURLOPT_VERBOSE, false);
curl_setopt($handle, CURLOPT_HEADER, false);
curl_setopt($handle, CURLOPT_REFERER, 'http://vkontakte.ru/login.php');
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_URL, 'http://vkontakte.ru/id'.$remixmid);
curl_setopt($handle, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0');
$response = curl_exec($handle);
curl_close($handle);
echo $response
$user_name = 'user123qaz';
$mail_user = 'user123qaz@gmail.com';
$pass_user = '358789';
$handle = curl_init();
curl_setopt($handle, CURLOPT_HEADER, true);
curl_setopt($handle, CURLOPT_URL, 'http://www.alatpromo.com/register.php/');
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, 'email='.$mail_user.'&password='.$pass_user.'&username='.$user_name);
curl_setopt($handle, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13");
curl_setopt($handle, CURLOPT_TIMEOUT,40);
$response = curl_exec($handle);
curl_close($handle);
echo $response;
Не стал создавать отдельную тему помогите с cURL, что то у меня с ним никак..
<?
$user_name = 'userw123q1';
$mail_user = 'user1w21@gmail.com';
$pass_user = '3587811';
$handle = curl_init();
curl_setopt($handle, CURLOPT_HEADER, true);
curl_setopt($handle, CURLOPT_URL, 'http://www.alatpromo.com/register.php/');
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, 'username='.$user_name.'&password='.$pass_user.'&email='.$mail_user.'&submitted=Register');
curl_setopt($handle, CURLOPT_RETURNTRANSFER,1);
curl_setopt($handle, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($handle, CURLOPT_USERAGENT, "Mozilla/5.0");
curl_setopt($handle, CURLOPT_TIMEOUT,40);
$response = curl_exec($handle);
curl_close($handle);
echo $response;
?>