then....i have this php...
it work

it upload file in filesonic

but it not log in !!!
then the file isn associated to my account...

can someone help me?

PHP Code: 
function upFSC($value$username$password){
    
//$page = postHost("http://www.filesonic.in/user/login", "email=$username&redirect=%2F&password=$password&rememberMe=1","");
    
      

    
$post = array();
    
$post["email"] = $username;
    
$post["password"] = $password;
    
$post["rememberMe"] = 1;
    
$post["redirect"] = '';
    
$post["controls-submit"] = 'submit';
    
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL"http://filesonic.com/user/login");
    
curl_setopt($chCURLOPT_POST1);
    
curl_setopt($chCURLOPT_POSTFIELDS$post);
    
curl_setopt($chCURLOPT_HEADER1);
    
curl_setopt($chCURLOPT_FOLLOWLOCATION1);
    
curl_setopt($chCURLOPT_UNRESTRICTED_AUTH1);
    
curl_setopt($chCURLOPT_REFERER"http://www.filesonic.com");
    
curl_setopt($chCURLOPT_USERAGENT"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
    
curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:')); 
    
$page curl_exec ($ch);
    
curl_close ($ch);
    
    echo 
$page;
    
$tmparr=explode(";"GetCookies($page));    
    
$cookies=$tmparr[0]."; ".$tmparr[3]."; ".$tmparr[4]."; ".$tmparr[5]."; ".$tmparr[6]."; ".$tmparr[7]."; ".$tmparr[8];
    
$sessID cut_str($cookies'PHPSESSID='';');
    
//$page = postHost("http://www.filesonic.com/", "", "$cookies");
    
$originalAction cut_str($page'class="webUpload" action="''" method');
    
$millisec round((microtime(true) * 1000.0));
    
$random rand(0,90000);
    
$uploadIdentifier 'upload_'.$millisec.'_'.$sessID.'_'.$random;
    
$url $originalAction '/?X-Progress-ID=' $uploadIdentifier
    
$url 'http://s210.filesonic.com' '/?X-Progress-ID=' $uploadIdentifier
    
$post = array('upload[]' => "@$value");
    
$uploadFile postHost($url$post$cookies);
    
$result postHost('http://www.filesonic.com/upload-completed/upload_'.$millisec.'_'.$sessID.'_'.$random''$cookies);
    
preg_match('/F[0-9]+/'html_entity_decode($result), $match);
    if (
$match[0]==null){$link=null;}
    else{
$link 'http://www.filesonic.com/file/'.str_replace('F','',$match[0])."/".basename($value);}
    return 
$link
ciaociao4 Reviewed by ciaociao4 on . filesonic upload script.... then....i have this php... it work it upload file in filesonic but it not log in !!! then the file isn associated to my account... can someone help me? Rating: 5