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

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1.     
    #1
    Member
    Website's:
    fileservedownload.net

    Default netload upload script



    i use a script to upload on the filehost...like fileserve filesonic etc..etc...

    now i need to convert to allow the upload to netload...

    netload have api but i dont know how use this...



    example of the part of the script to upload to...
    for an example

    PHP Code: 
     function upUL($value$usr$pass$client){
    $filename basename($value);

    $cookieFile $client.'_Uploaded.to.txt';
    $url "http://uploaded.to/io/login";
    $post['id'] = $usr;
    $post['pw'] = $pass;

    $ch curl_init();
    curl_setopt($chCURLOPT_URL$url);
    curl_setopt($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$post);
    curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    curl_setopt($chCURLOPT_UNRESTRICTED_AUTHTRUE);
    curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
    curl_setopt($chCURLOPT_COOKIEJAR,$cookieFile);
    $result curl_exec ($ch);
    curl_close ($ch);

    $page pHCJ("http://uploaded.to/home","",$cookieFile);
    $script pHCJ("http://uploaded.to/js/script.js","",$cookieFile);
    $editKey generate(6);
    $serverUrl cut_str($script'uploadServer = \'''\'') . 'upload?admincode=' $editKey '&id=' $usr '&pw=' sha1($pass);

    $fpost['Filename'] = "$filename";
    $fpost['Upload'] = 'Submit Query';
    $fpost['Filedata'] = "@$value";
    pHCJ($serverUrl,    $fpost,        $cookieFile);

    sleep (10);
    $page null;
    $search['page'] = 0;
    $search['limit'] = 5;
    $search['order'] = 'date';
    $search['search'] = $filename;
    $page pHCJ("http://uploaded.to/io/me/list/files",    $search$cookieFile);
    $json substr($pagestrpos($page'{"list'));
    $linkInfo json_decode(trim($json));
    $linkInfo $linkInfo->list[0];
    $tmp $linkInfo->id;

    if (
    $tmp null){$link=null;}
    else{
    $link 'http://ul.to/' $linkInfo->id "/" $filename;}
    return 
    $link;




    someone can help me to add the netfile upload function?

    thanks
    ciaociao4 Reviewed by ciaociao4 on . netload upload script :D i use a script to upload on the filehost...like fileserve filesonic etc..etc... now i need to convert to allow the upload to netload... netload have api but i dont know how use this... Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    sborg.us
    sleep (10); ??

    Seriously?

    V3g3ta | Halcyon | Abhi

  4.     
    #3
    Member
    Website's:
    fileservedownload.net
    i dont' know what is it

    i use this for uploaded.to and go well


    ps. sborg have very much problem with uploaded.to

  5.     
    #4
    Member
    Website's:
    dota2lounge.com
    Theres example in php-curl on netload api site. Check it out.

  6.     
    #5
    Member
    Website's:
    fileservedownload.net
    yep...i try to modify this for mine but...nothing...i'm not a coder

  7.     
    #6
    Member
    if uploaded.to still working just stick to that until they shutting down
    because we cant be sure what next hosting will down next
    the hosting world still in chaos

  8.     
    #7
    Member
    Website's:
    fileservedownload.net
    netload will work

  9.     
    #8
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Try this code:

    PHP Code: 
    function upNetLoad($value$usr$pass){
    // Soft2050
    $filename basename($value);

    $url file_get_contents('http://api.netload.in/getserver.php');
    $post = Array ('modus' => 'file_upload''auth' => '' '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 
    'Upload failed.';
    }
    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];
    }


    Usage example:
    PHP Code: 
    echo upNetLoad(realpath('file.rar'), 'user''password'); 

  10.     
    #9
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Use the PHP tags for code next time.

    Defendos BETA3 Released! Thread - Official Website

  11.     
    #10
    Member
    Website's:
    fileservedownload.net
    Quote Originally Posted by soft2050 View Post
    Try this code:

    PHP Code: 
    function upNetLoad($value$usr$pass){
    // Soft2050
    $filename basename($value);

    $url file_get_contents('http://api.netload.in/getserver.php');
    $post = Array ('modus' => 'file_upload''auth' => '' '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 
    'Upload failed.';
    }
    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];
    }


    Usage example:
    PHP Code: 
    echo upNetLoad(realpath('file.rar'), 'user''password'); 

    thanks...i love you...but somwthings not work

    i retry tonight...

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Netload.in, Can I upload by FTP on Netload.in?
    By xitrumndt in forum File Host Discussion
    Replies: 6
    Last Post: 15th Jul 2012, 08:05 AM
  2. how can I remote upload in netload
    By red_lover in forum File Host Discussion
    Replies: 0
    Last Post: 5th Mar 2012, 05:43 PM
  3. How do you upload to Netload
    By pecko in forum File Host Discussion
    Replies: 1
    Last Post: 9th Feb 2012, 11:09 AM
  4. How to Remote upload to Netload?
    By wolverineq32 in forum Technical Help Desk Support
    Replies: 0
    Last Post: 10th Sep 2010, 01:59 AM

Tags for this Thread

BE SOCIAL