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

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1.     
    #1
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com

    Default wupload upload plugin asap

    hey mates,
    i need help coding an upload plugin for wupload, every time i make a call, it gives me HTTP/1.1 411 Length Required

    i need help asap,
    thanks in advance.
    jokerhacker Reviewed by jokerhacker on . wupload upload plugin asap hey mates, i need help coding an upload plugin for wupload, every time i make a call, it gives me HTTP/1.1 411 Length Required i need help asap, thanks in advance. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member

  4.     
    #3
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    this could help if i rip upfile() , but i really have no time :/

  5.     
    #4
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Use WUPLOAD API:

    You might be having fso with there api, just change the user/pass and link and everything else should be same :)


    I just did teh homework for you so no need of above:

    PHP Code: 
    <?php

    // Wupload Plugin using there API by Soft2050

    $wuuser 'myusername';
    $wupass 'mypass';

    function 
    wuploadup($filename$username$password) {

        
    $geturld file_get_contents("http://api.wupload.com/upload?method=getUploadUrl&u=$username&p=$password&format=xml");
        
        
    preg_match('/(http:\/\/.*?format=xml)/i'$geturld$matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
        
        
    $upurl $matches[0];
        
        
    $post = array('files[]' => "@$filename");
        
        
    $ch curl_init();
        
    curl_setopt($chCURLOPT_URLtrim($upurl));
        
    curl_setopt($chCURLOPT_POST1);
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
        
    curl_setopt($chCURLOPT_POSTFIELDS$post);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
    $getresult curl_exec($ch);
        
    curl_close($ch);
        
        
    preg_match('/\<url\>(.*?)\<\/url\>/i'$getresult$matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
        
        
    $resulturl $matches[0];
        
        return 
    $resulturl;

    }

    echo 
    wuploadup'myfilelink'$wuuser$wupass);

    ?>
    I also tested it and it works:


  6.     
    #5
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    shiiiiiiiiiiiiiiiiiit!!!!!!
    i'm really grateful for you soft2050, but i didn't notice that you edited your post and i removed this shit from my function
    PHP Code: 
    curl_setopt($chCURLOPT_UPLOADtrue); 
    and now it works.
    your code is really greate
    + i didnt know that i can have an xml reponse
    + your regex is good
    +rep

  7.     
    #6
    Member
    Website's:
    ExploringPC.com DedicatedSeedboxHosting.com
    Quote Originally Posted by jokerhacker View Post
    shiiiiiiiiiiiiiiiiiit!!!!!!
    i'm really grateful for you soft2050, but i didn't notice that you edited your post and i removed this shit from my function
    PHP Code: 
    curl_setopt($chCURLOPT_UPLOADtrue); 
    and now it works.
    your code is really greate
    + i didnt know that i can have an xml reponse
    + your regex is good
    +rep
    As far as I think, its Gunda's code.

  8.     
    #7
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by jokerhacker View Post
    shiiiiiiiiiiiiiiiiiit!!!!!!
    i'm really grateful for you soft2050, but i didn't notice that you edited your post and i removed this shit from my function
    PHP Code: 
    curl_setopt($chCURLOPT_UPLOADtrue); 
    and now it works.
    your code is really greate
    + i didnt know that i can have an xml reponse
    + your regex is good
    +rep
    Thank you dude

    Quote Originally Posted by kundurocks View Post
    As far as I think, its Gunda's code.
    lol! wat

    Gunda never released code for Wupload

    He did for filesonic i guess (without api)

  9.     
    #8
    It begins...
    A JSON response (using php's json_decode) is a cleaner way. In Soft's code, if you use the json response, you'll have one less regex matching to do

  10.     
    #9
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    i've already done that

  11.     
    #10
    Member
    very good script... just one suggestion - please make reupload if dont success in first time...

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove Wupload Internal Remote Upload(Wupload to Wupload)?
    By jbisana17 in forum File Host Discussion
    Replies: 57
    Last Post: 22nd Nov 2011, 01:26 AM
  2. Need Wupload.com Upload RapidLeech Plugin
    By Wanted in forum File Host Discussion
    Replies: 29
    Last Post: 28th Oct 2011, 08:43 PM
  3. [Rapidleech] Wupload upload plugin is not working anymore ?
    By MrCheetoDust in forum Web Application/Script Support
    Replies: 4
    Last Post: 15th Oct 2011, 05:57 AM
  4. [Need] wupload.com Upload/Download Plugin
    By anneloveamale in forum Webmaster Resources
    Replies: 1
    Last Post: 21st Aug 2011, 01:22 AM
  5. Upload Plugin Creation - Wupload
    By viruz99 in forum Technical Help Desk Support
    Replies: 2
    Last Post: 1st Jun 2011, 06:33 AM

Tags for this Thread

BE SOCIAL