Results 1 to 6 of 6
-
29th Jan 2012, 05:57 PM #1OPMemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comFreakshare 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 "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
-
29th Jan 2012, 06:10 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inTry 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>';
}
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
-
29th Jan 2012, 06:33 PM #3OPMemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comthanks ..... i missed that
-
30th Jan 2012, 10:12 AM #4Member
can you explain what this can help for upload to freakshare?
-
30th Jan 2012, 10:13 AM #5Member
^^ its for coders.
-
30th Jan 2012, 11:26 AM #6Member
code?
so where to copy paste it? (if him give it permission~~)
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
PHP Upload function for sharedbit.net help
By t3od0r in forum Web Development AreaReplies: 2Last Post: 20th Oct 2012, 11:38 AM -
[Buying] php cURL upload function only
By hihotfile in forum Marketplace (Buy, Sell and Trade)Replies: 1Last Post: 23rd Sep 2012, 02:27 PM -
[PHP] Turbobit.net Upload Function
By Halcyon in forum Web Development AreaReplies: 9Last Post: 10th Feb 2012, 09:59 AM -
[Buying] php curl upload function for oron and fs
By rambaldi in forum Completed TransactionsReplies: 2Last Post: 17th Jul 2011, 01:27 PM -
[Buying] PHP Mediafire upload function
By somik in forum Completed TransactionsReplies: 0Last Post: 15th Apr 2011, 02:35 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...