Results 1 to 10 of 25
-
24th Jan 2012, 01:26 PM #1OPMemberWebsite's:
fileservedownload.netnetload 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($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_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($page, strpos($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?
thanksciaociao4 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
-
24th Jan 2012, 01:27 PM #2MemberWebsite's:
sborg.ussleep (10); ??
Seriously?
V3g3ta | Halcyon | Abhi
-
24th Jan 2012, 02:17 PM #3OPMemberWebsite's:
fileservedownload.neti dont' know what is it
i use this for uploaded.to and go well
ps. sborg have very much problem with uploaded.to
-
24th Jan 2012, 02:19 PM #4MemberWebsite's:
dota2lounge.comTheres example in php-curl on netload api site. Check it out.
-
24th Jan 2012, 02:39 PM #5OPMemberWebsite's:
fileservedownload.netyep...i try to modify this for mine but...nothing...i'm not a coder
-
24th Jan 2012, 03:11 PM #6Member
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
-
24th Jan 2012, 03:57 PM #7OPMemberWebsite's:
fileservedownload.netnetload will work
-
24th Jan 2012, 04:48 PM #8Respected MemberWebsite's:
DL4Everything.com Soft2050.inTry 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($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$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];
}
}
PHP Code:echo upNetLoad(realpath('file.rar'), 'user', 'password');
-
24th Jan 2012, 05:09 PM #9MemberWebsite's:
Elite.SO Defendos.com Motionite.comUse the PHP tags for code next time.
-
24th Jan 2012, 06:52 PM #10OPMemberWebsite's:
fileservedownload.net
thanks...i love you...but somwthings not work
i retry tonight...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Netload.in, Can I upload by FTP on Netload.in?
By xitrumndt in forum File Host DiscussionReplies: 6Last Post: 15th Jul 2012, 08:05 AM -
how can I remote upload in netload
By red_lover in forum File Host DiscussionReplies: 0Last Post: 5th Mar 2012, 05:43 PM -
How do you upload to Netload
By pecko in forum File Host DiscussionReplies: 1Last Post: 9th Feb 2012, 11:09 AM -
How to Remote upload to Netload?
By wolverineq32 in forum Technical Help Desk SupportReplies: 0Last Post: 10th Sep 2010, 01:59 AM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...