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