Activity Stream
48,167 MEMBERS
63594 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    fileservedownload.net

    Default 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?

    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

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    You can use there api

    Or check the wupload example:
    You need to only change the siteurl and rest remains same! It should work for filesonic too since script is very much similar

  4.     
    #3
    Member
    Website's:
    fileservedownload.net
    thanks a lot

    i combine this script and now work 100%

    thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remote Upload(FileSonic To FileSonic)
    By Gebriel in forum File Host Discussion
    Replies: 4
    Last Post: 21st Nov 2011, 11:24 AM
  2. Looking for multi upload / mirror upload script
    By none in forum Webmaster Resources
    Replies: 14
    Last Post: 18th Sep 2011, 04:01 PM
  3. Replies: 3
    Last Post: 28th Apr 2011, 12:28 PM
  4. Fastest way to remote upload FileSonic to FileSonic?
    By derrenbrown in forum File Host Discussion
    Replies: 2
    Last Post: 25th Apr 2011, 04:24 AM
  5. Replies: 4
    Last Post: 18th Apr 2011, 01:16 PM

Tags for this Thread

BE SOCIAL