[PHP] A simpler way to log into wUpload using PHP and CURL

Code: 
<?php
/**
* Author: Vick@PHPCanyon.net
* Site  : www.PHPCanyon.net
* Date  : 26/11/2011
*/

// Variables to Post
$username = "vickkumar2011@gmail.com";
$password = "password";

$postvars = array(
    'email'=>$username,
    'redirect'=>"/",
    'password'=>$password,
    'rememberMe'=>"1"
); 

// Do Curl Request
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL,'http://www.wupload.com/account/login'); 
curl_setopt($ch, CURLOPT_POST,1); 
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result=curl_exec ($ch); 
curl_close ($ch); 

// Do Stuff with Results
echo $result;
?>
_Vick Reviewed by _Vick on . [PHP] A simpler way to log into wUpload using PHP and CURL A simpler way to log into wUpload using PHP and CURL <?php /** * Author: Vick@PHPCanyon.net * Site : www.PHPCanyon.net * Date : 26/11/2011 */ // Variables to Post Rating: 5