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

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com

    Default Freakshare upload function issue

    I am trying to make a function to upload to freakshare but for the last hours i can't get a good result ....
    my code:
    PHP Code: 
    function freakshareupload($filename,$filelocation,$cookie,$username$password){    

          
    $ref "http://freakshare.com/";
        
        
    $page curl($ref,'',$cookie,$ref);
        
    //echo '<textarea>'.htmlentities($page).'</textarea>';
        
    $url cut_str($page'<form action="','" method="post"');
        
        
    $fpost = array();
        
    $fpost["APC_UPLOAD_PROGRESS"] =  cut_str($page'name="APC_UPLOAD_PROGRESS" id="progress_key"  value="','"');
        
    $fpost["APC_UPLOAD_USERGROUP"] = cut_str($page'name="APC_UPLOAD_USERGROUP" id="usergroup_key"  value="','"');
        
    $fpost["UPLOAD_IDENTIFIER"] = cut_str($page'name="UPLOAD_IDENTIFIER" value="','"');
        
    $fpost["file"] = "@$filelocation";     
     
        
    $uid 0
        
    $uid rand_uid(32);
        
    $url=$url '?X-Progress-ID=' $uid;
        echo 
    $url;
        
    printr($fpost);
        
    $page curl_func($url,$fpost,$cookie,$ref,0);
           echo 
    '<textarea>'.htmlentities($page).'</textarea>';

        

    if i use $fpost["file"] i get "Fatal error: Cannot unset string offsets in /var/www/fs/x/upload.php on line 16"
    if i use $fpost["file[]"] i get "no files"
    t3od0r Reviewed by t3od0r on . Freakshare upload function issue I am trying to make a function to upload to freakshare but for the last hours i can't get a good result .... my code: function freakshareupload($filename,$filelocation,$cookie,$username, $password){ $ref = "http://freakshare.com/"; $page = curl($ref,'',$cookie,$ref); //echo '<textarea>'.htmlentities($page).'</textarea>'; $url = cut_str($page, '<form action="','" method="post"'); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Try this. This should work.

    PHP Code: 
    function freakshareupload($filelocation,$cookie,$username$password){    

        
    $ref "http://freakshare.com/";
        
        
    $page curl($ref,'',$cookie,$ref);
        
    //echo '<textarea>'.htmlentities($page).'</textarea>';
        
    $url cut_str($page'<form action="','" method="post"');
        
        
    $fpost = array(
                        
    'APC_UPLOAD_PROGRESS' => cut_str($page'name="APC_UPLOAD_PROGRESS" id="progress_key"  value="','"'),
                        
    'APC_UPLOAD_USERGROUP' => cut_str($page'name="APC_UPLOAD_USERGROUP" id="usergroup_key"  value="','"'),
                        
    'UPLOAD_IDENTIFIER' => cut_str($page'name="UPLOAD_IDENTIFIER" value="','"'),
                        
    'file[]"; filename="' => basename($filelocation),
                        
    'file[]' => "@$filelocation
                        
    );
     
        
    $uid 0
        
    $uid rand_uid(32);
        
    $url=$url '?X-Progress-ID=' $uid;
        echo 
    $url;
        
    printr($fpost);
        
    $page curl_func($url,$fpost,$cookie,$ref,0);
           echo 
    '<textarea>'.htmlentities($page).'</textarea>';

        

    Note the extra filename variable in the $fpost array.

    Freakshare shows me this:


    Note: I removed 1 variable from your function $filename since it has no use in the function. So you may need to modify it

  4.     
    #3
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    thanks ..... i missed that

  5.     
    #4
    Member
    can you explain what this can help for upload to freakshare?

  6.     
    #5
    Member
    ^^ its for coders.

  7.     
    #6
    Member
    code?
    so where to copy paste it? (if him give it permission~~)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PHP Upload function for sharedbit.net help
    By t3od0r in forum Web Development Area
    Replies: 2
    Last Post: 20th Oct 2012, 11:38 AM
  2. [Buying] php cURL upload function only
    By hihotfile in forum Marketplace (Buy, Sell and Trade)
    Replies: 1
    Last Post: 23rd Sep 2012, 02:27 PM
  3. [PHP] Turbobit.net Upload Function
    By Halcyon in forum Web Development Area
    Replies: 9
    Last Post: 10th Feb 2012, 09:59 AM
  4. [Buying] php curl upload function for oron and fs
    By rambaldi in forum Completed Transactions
    Replies: 2
    Last Post: 17th Jul 2011, 01:27 PM
  5. [Buying] PHP Mediafire upload function
    By somik in forum Completed Transactions
    Replies: 0
    Last Post: 15th Apr 2011, 02:35 AM

Tags for this Thread

BE SOCIAL