Results 1 to 10 of 19
-
22nd Aug 2011, 05:20 AM #1OPMemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comwupload upload plugin asap
hey mates,
i need help coding an upload plugin for wupload, every time i make a call, it gives me HTTP/1.1 411 Length Required
i need help asap,
thanks in advance.jokerhacker Reviewed by jokerhacker on . wupload upload plugin asap hey mates, i need help coding an upload plugin for wupload, every time i make a call, it gives me HTTP/1.1 411 Length Required i need help asap, thanks in advance. Rating: 5JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
22nd Aug 2011, 05:31 AM #2Member
try this...
http://www.mediafire.com/?dom9ly0qufcku5v
-
22nd Aug 2011, 05:47 AM #3OPMemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comthis could help if i rip upfile() , but i really have no time :/
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
22nd Aug 2011, 06:00 AM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.inUse WUPLOAD API:
You might be having fso with there api, just change the user/pass and link and everything else should be same :)
I just did teh homework for you so no need of above:
PHP Code:<?php
// Wupload Plugin using there API by Soft2050
$wuuser = 'myusername';
$wupass = 'mypass';
function wuploadup($filename, $username, $password) {
$geturld = file_get_contents("http://api.wupload.com/upload?method=getUploadUrl&u=$username&p=$password&format=xml");
preg_match('/(http:\/\/.*?format=xml)/i', $geturld, $matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
$upurl = $matches[0];
$post = array('files[]' => "@$filename");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, trim($upurl));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$getresult = curl_exec($ch);
curl_close($ch);
preg_match('/\<url\>(.*?)\<\/url\>/i', $getresult, $matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
$resulturl = $matches[0];
return $resulturl;
}
echo wuploadup( 'myfilelink', $wuuser, $wupass);
?>
-
22nd Aug 2011, 06:43 AM #5OPMemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comshiiiiiiiiiiiiiiiiiit!!!!!!
i'm really grateful for you soft2050, but i didn't notice that you edited your post and i removed this shit from my function
PHP Code:curl_setopt($ch, CURLOPT_UPLOAD, true);
your code is really greate
+ i didnt know that i can have an xml reponse
+ your regex is good
+repJokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
23rd Aug 2011, 06:24 AM #6MemberWebsite's:
ExploringPC.com DedicatedSeedboxHosting.com
-
23rd Aug 2011, 11:10 AM #7Respected MemberWebsite's:
DL4Everything.com Soft2050.in
-
23rd Aug 2011, 12:10 PM #8It begins...
A JSON response (using php's json_decode) is a cleaner way. In Soft's code, if you use the json response, you'll have one less regex matching to do
-
23rd Aug 2011, 01:23 PM #9OPMemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comi've already done that
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
23rd Aug 2011, 08:07 PM #10Member
very good script... just one suggestion - please make reupload if dont success in first time...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Remove Wupload Internal Remote Upload(Wupload to Wupload)?
By jbisana17 in forum File Host DiscussionReplies: 57Last Post: 22nd Nov 2011, 01:26 AM -
Need Wupload.com Upload RapidLeech Plugin
By Wanted in forum File Host DiscussionReplies: 29Last Post: 28th Oct 2011, 08:43 PM -
[Rapidleech] Wupload upload plugin is not working anymore ?
By MrCheetoDust in forum Web Application/Script SupportReplies: 4Last Post: 15th Oct 2011, 05:57 AM -
[Need] wupload.com Upload/Download Plugin
By anneloveamale in forum Webmaster ResourcesReplies: 1Last Post: 21st Aug 2011, 01:22 AM -
Upload Plugin Creation - Wupload
By viruz99 in forum Technical Help Desk SupportReplies: 2Last Post: 1st Jun 2011, 06:33 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...