GarryOne Posted June 8, 2012 Report Posted June 8, 2012 (edited) E prima mea creatie in materie de cURL, m-au mai ajutat si prietenii un pic.<?php$fp = fopen("cookie.txt", "w+");fclose($fp);$data = array( array( 'username' => 'account1', 'password' => 'garry1' ), array( 'username' => 'account2', 'password' => 'garry2' ), array( 'username' => 'account3', 'password' => 'garry3' ), array( 'username' => 'account4', 'password' => 'garry4' ) );foreach($data as $login) { if(is_array($login)) { $post = http_build_query($login); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://filelist.ro/takelogin.php'); curl_setopt($curl, CURLOPT_POST, TRUE); curl_setopt($curl, CURLOPT_POSTFIELDS, $login); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_UNRESTRICTED_AUTH, true); curl_setopt($curl, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($curl, CURLOPT_COOKIEFILE, "cookie.txt"); if(curl_exec($curl) == FALSE) { echo $login['username'].":".$login['password']."<br />"; } }}?> Edited June 8, 2012 by GarryOne Quote