hello :D
i use a script for upload to some host...like uploaded.to or netload...
i want cancel uploade.to (close affiliate program) and start with share-online
i see the page of apiupload
http://www.share-online.biz/uploadapi/
i try...but i don't know how modified my script...
netload example (thank at soft 2005)
can someone help me for the share-online.biz script???
thanks<3
:facepalm:
i use a script for upload to some host...like uploaded.to or netload...
i want cancel uploade.to (close affiliate program) and start with share-online
i see the page of apiupload
http://www.share-online.biz/uploadapi/
i try...but i don't know how modified my script...
netload example (thank at soft 2005)
PHP:
function upNetLoad($value, $usr, $pass){
$url = file_get_contents('http://api.netload.in/getserver.php');
$post = Array ('modus' => 'file_upload', 'file_link' => "@$value", 'auth' => 'xxxxxxxxxxxxxxxxxxx', '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 '';
}
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];
}
thanks<3
:facepalm: