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

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

    Default share-online.biz upload script

    hello

    i use a script for upload to some host...like uploaded.to or netload...

    i want cancel uploade.to (close affiliate program) and start with share-online


    i see the page of apiupload

    http://www.share-online.biz/uploadapi/


    i try...but i don't know how modified my script...
    netload example (thank at soft 2005)


    PHP Code: 
    function upNetLoad($value$usr$pass){

    $url file_get_contents('http://api.netload.in/getserver.php');
    $post = Array ('modus' => 'file_upload''file_link' => "@$value"'auth' => 'xxxxxxxxxxxxxxxxxxx''user_id' => $usr'user_password' => $pass);

    $ch curl_init();
    curl_setopt($chCURLOPT_URL$url);
    curl_setopt($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$post);
    curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    $result curl_exec ($ch);
    curl_close ($ch);

    if (
    preg_match("/upload_failed/"$result) || preg_match("/prepare_failed/"$result)) {
    return 
    '';
    }
    else if (
    preg_match("/UPLOAD_OK/"$result)) {
    $arr explode(';'$result);
    /*
    $arr[0] : UPLOAD_OK
    $arr[1] : FILENAME
    $arr[2] : FILESIZE
    $arr[3] : DOWNLOAD LINK
    $arr[4] : DELETE LINK
    */
    return $arr[3];

    can someone help me for the share-online.biz script???
    thanks

    ciaociao4 Reviewed by ciaociao4 on . share-online.biz upload script hello :D i use a script for upload to some host...like uploaded.to or netload... i want cancel uploade.to (close affiliate program) and start with share-online i see the page of apiupload http://www.share-online.biz/uploadapi/ Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    tv-release.net
    This is for you..

    PHP Code: 
     <?php
    /*
    Upload to Share-online with cUrl
    Fixed By: AdelSBM
    */


    //----------------------------------
    $user="0123456789";  // Username
    $pass="HgHFGhFsfS";    // Password

    $filelocation="999.rar";  // file Path
    //-----------------------------------

    shareonlinebizupload($filename,$filelocation,$user$pass); // Let's upload


    function shareonlinebiz_getsession($user,$pass){

        
    $url "http://www.share-online.biz/upv3_session.php";
        
    $postdata = array();
        
    $postdata['username'] = $user;
        
    $postdata['password'] = $pass;
        
    $strpage curl_func($url,$postdata,'','',0);
        return 
    $strpage;
    }    


    function 
    shareonlinebizupload($filename,$filelocation,$user$pass){    
        
    $data shareonlinebiz_getsession($user,$pass);
        
    $data explode(';',$data);
        
    $fpost = array();
        
    $fpost["username"] = $user;
        
    $fpost["password"] = $pass;
        
    $fpost["upload_session"] = $data[0];
        
    $fpost['chunk_no'] = '1';
        
    $fpost['chunk_number'] = '1';
        
    $fpost['filesize'] = filesize($filelocation);
        
    $fpost['fn'] = "@".$filelocation;
        
    $fpost["finalize"] = "1";    
        
        
    //printr($fpost);
        
    $server 'http://'.$data[1];
        
    //echo $server;
        
    $page curl_func($server,$fpost,'','',0);
        
    $data explode(';',$page);
        
    $download_link=$data[0];
        echo 
    $download_link;
    }  
    function 
    curl_func($link$postfields ''$cookie ''$refer ''$header 1$follow 1$usragent ''){

        
    $ch curl_init($link);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
        if(
    $header)
            
    curl_setopt($chCURLOPT_HEADER1);
        else
            
    curl_setopt($chCURLOPT_HEADER0);         
        if(
    $follow)
            @
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
       else
           @
    curl_setopt($chCURLOPT_FOLLOWLOCATION0); 
        if(
    $usragent)    
           
    curl_setopt($chCURLOPT_USERAGENT$usragent);
        else
            
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
        
        if(
    $refer)
            
    curl_setopt($chCURLOPT_REFERER$refer);
            
        if(
    $postfields){
            
    curl_setopt($chCURLOPT_POST1);
            
    curl_setopt($chCURLOPT_POSTFIELDS$postfields);
        }
        if(
    $cookie){
            
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);
        }
        
    curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
        
    $page curl_exec($ch);

        
    curl_close($ch);

        if(empty(
    $page)){
            echo 
    "<br/>Could not connect to host: <br/> $link <br/>";
            
    //die();
        
    }
        else{
            return 
    $page;
        }


    ?>
    you can see:

    http://www.besthostingforums.com/92-...line-curl.html

  4.     
    #3
    Member
    Website's:
    fileservedownload.net
    really appreciate

    really "thanks"

    but this not work for me


    i dont know why but if i add this in my script this not work

  5.     
    #4
    Member
    Website's:
    tv-release.net
    Its work good .. I tried it again

    Set your share-online Username and Password To Use Api

    Be sure you enter the real file Path



    PHP Code: 
    //----------------------------------
    $user="0123456789";  // Username
    $pass="HgHFGhFsfS";    // Password

    $filelocation="999.rar";  // file Path
    //----------------------------------- 

  6.     
    #5
    Member
    Website's:
    fileservedownload.net
    i think your "sript" it's much different from my script and i'm nott good with php

    then i cant modify this for add your script

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Upload to Share-Online.biz with Perl Script
    By Homosapien in forum Web Development Area
    Replies: 2
    Last Post: 23rd Oct 2012, 04:31 PM
  2. Replies: 358
    Last Post: 9th Oct 2012, 11:46 PM
  3. Share-Online.biz close PPD
    By Deadmau5 in forum File Host Discussion
    Replies: 24
    Last Post: 9th Apr 2012, 07:06 AM
  4. Upload to Share-online with cUrl
    By skinner in forum Web Development Area
    Replies: 9
    Last Post: 23rd Mar 2012, 01:52 AM
  5. remote upload from easy-share/share.cx to
    By algon in forum File Host Discussion
    Replies: 3
    Last Post: 19th May 2011, 04:09 PM

Tags for this Thread

BE SOCIAL