Results 11 to 16 of 16
-
11th Jun 2012, 06:50 PM #11OPMember
I upload to RS automatically with script
-
11th Jun 2012, 06:54 PM #12The Wise OneWebsite's:
twilight.ws ddlrank.comWhen you upload using the API it returns the full url to the file you just uploaded. You have to save this in a database on your end if you want to search for it/use it later on.
-
11th Jun 2012, 07:01 PM #13OPMember
Whoo
yes, it's saved to txt file, but I thought it's easier to get it from site...
-
11th Jun 2012, 07:02 PM #14MemberWebsite's:
WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
-
11th Jun 2012, 08:26 PM #15MemberWebsite's:
epicimagehost.comHave a nice day
Non-noob:
PHP Code:<?php
############################
# RapidShare search shit#
############################
# by Robin Houtevelts #
# robin@houtevelts.com #
############################
function http($url,$post = false){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if(!empty($post)){
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
$return = curl_exec($ch);
if($output === false)
$return = 'ERROR: '.curl_error($ch);
curl_close($ch);
return trim($return);
}
$username = 'username';
$password = 'password';
$title = trim($_GET['title']);
$apidata = array(
'sub' => 'listfiles',
'filename' => $title,
'fields' => 'filename',
'login' => $username,
'password' => $password
);
$apireturn = http('https://api.rapidshare.com/cgi-bin/rsapi.cgi',$apidata);
if(strpos($apireturn,'ERROR') === TRUE){
echo $apireturn;
exit;
}
if($apireturn == 'NONE'){
echo 'File not found';
exit;
}
$files = explode("\n",$apireturn);
$urls = array();
foreach($files as $file){
$file = explode(',',$file);
list($fileID,$filename) = $file;
$urls[] = 'https://rapidshare.com/files/'.$fileID.'/'.$filename;
}
$urls = implode("\n",$urls);
echo $urls;
?>
PHP Code:<?php
############################
# RapidShare search shit#
############################
# by Robin Houtevelts #
# robin@houtevelts.com #
############################
function http($url,$post = false){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if(!empty($post)){
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
$return = curl_exec($ch);
if($output === false)
$return = 'ERROR: '.curl_error($ch);
curl_close($ch);
return trim($return);
}
$username = 'username';
$password = 'password';
?>
<html>
<head></head>
<body>
<?php
if(empty($_GET['title'])){
?>
<form action="" method="GET">
<input type="text" name="title" />
<input type="submit" value="Search" />
</form>
<?php
}else{
$title = '%'.trim($_GET['title']).'%';
$apidata = array(
'sub' => 'listfiles',
'filename' => $title,
'fields' => 'filename',
'login' => $username,
'password' => $password
);
$apireturn = http('https://api.rapidshare.com/cgi-bin/rsapi.cgi',$apidata);
if(strpos($apireturn,'ERROR') === TRUE){
echo $apireturn;
exit;
}
if($apireturn == 'NONE'){
echo 'File not found';
exit;
}
$files = explode("\n",$apireturn);
$urls = array();
foreach($files as $file){
$file = explode(',',$file);
list($fileID,$filename) = $file;
$urls[] = 'https://rapidshare.com/files/'.$fileID.'/'.$filename;
}
$urls = implode("\n",$urls);
?>
<textarea><?php echo $urls;?></textarea>
<?php
}
?>
</body>
</html>
-
12th Jun 2012, 07:54 PM #16OPMember
Thank you!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to Generate Linkbucks link using curl?
By dewaforex in forum Web Development AreaReplies: 2Last Post: 19th May 2012, 04:53 AM -
Stream download link to user using CURL
By santanu18 in forum Technical Help Desk SupportReplies: 2Last Post: 8th Dec 2011, 04:44 AM -
[Help] PHP Curl Uploader to RapidShare Problem
By heppinnz in forum Web Development AreaReplies: 2Last Post: 29th Nov 2011, 06:28 AM -
Premium link generator for fileserve using cURL - error
By nummi in forum Web Development AreaReplies: 1Last Post: 12th Sep 2011, 07:18 PM -
Help with Uploading.com batch Link Checker and Curl ..
By Lock Down in forum Webmaster ResourcesReplies: 9Last Post: 3rd Dec 2010, 02:31 AM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...