| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				$20 for PHP cURL code that simply uploads a file to zshare
			 
			I know it's possible because there are sites that upload to multiple file hosts that do this. I've tried a few ways and I just can't get it to work. There are only 2-3 fields so it shouldn't be too hard for someone experienced with cURL... 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 scriptmaster 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2006 
				Location: Serbia 
				
				
					Posts: 5,237
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Hit me up: 
		
	
		
		
		
		
		
	
	ICQ number is 375625511. admin [guess] zodumil [what] net  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Anyone else that can get me it quicker: jakezz [at] gmail.com, need this shit ASAP. Edit: payment will be via PayPal.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Registered User 
			
		
			
			
			Join Date: Jan 2009 
				
				
				
					Posts: 41
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 curl -T <FILENAME> -u <USRNAME>:<PASSWORD> <FTPADDR> etc.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Mar 2003 
				Location: Very small penis 
				
				
					Posts: 5,809
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I wouldn't even open my editor for $20 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 You should probably ignore this thread then.  
		
	
		
		
		
		
			
		
		
		
		
	
	![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Guest 
			
		
			
			
			
					Posts: n/a
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 dont forget to change the user-agent string which they might block 
		
	
		
		
		
		
		
	
	 | 
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Guest 
			
		
			
			
			
					Posts: n/a
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 If you still need help with this and everything you've tried has been exhausted, hit me up, I'll do it, but obviously for more then $20. 
		
	
		
		
		
		
		
	
	 | 
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I'm sure someone cURL savvy could just copy, paste, and edit some code found on Google (or write their own if they're really good) to POST into zshares couple of fields, hit up my email and make 20 quick bucks, and even think of some usefulness for it themselves, hell I do shit like this for fun sometimes but I just can't get this going.. this is really holding me up mang.. 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	$20 or a free copy of Babelogger V4, whatever it takes, I need this like yesterday.. and it's for a personal project, I'm not trying to pawn some work off on someone honestly ![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I could just get some 14 year old on yahoo answers to do it for free rofl. But coming here first. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 So Fucking Banned 
			
		
			
			
			Join Date: Jul 2004 
				
				
				
					Posts: 3,644
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 put it on a coding forum? there are tons 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Code: 
	<?php
$file = "temp.txt";
$description = "temp file description";
$post_vars = array();
$post_vars['desc'] = "$description";
$post_vars['file'] = "@$file";
$url = 'http://dl084.zshare.net:3000/';
$return = http_post_form($url, $post_vars);
$ere = explode("zshare.net/download/",$return);
$sre = explode("/",$ere[1]);
$dlink = "http://www.zshare.net/download/$sre[0]";
echo $dlink;
function http_post_form($url, $vars) {
  $ch = curl_init();
  $timeout = 0; 
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); 
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
  $file_contents = curl_exec($ch);
  curl_close($ch);
  return $file_contents;
}
?>
				__________________ 
		
		
		
		
		
			
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 actually the code above will work with any file but may not output the download url unless its a certain file because i didnt realise it gives a different format of download url depending on the filetype 
		
	
		
		
		
		
			what filetype do you plan on uploading ? heres some code to upload an entire directory of images to zshare and it spits out the download links Code: 
	<?php
foreach (glob("*.jpg") as $filename) {
$file = "$filename";
$description = "$filename";
$post_vars = array();
$post_vars['desc'] = "$description";
$post_vars['file'] = "@$file";
$url = 'http://dl084.zshare.net:3000/';
$return = http_post_form($url, $post_vars);
$ere = explode("zshare.net/image/",$return);
$sre = explode("/",$ere[1]);
$dlink = "http://www.zshare.net/image/$sre[0]";
echo "$dlink<br>";
}
function http_post_form($url, $vars) {
  $ch = curl_init();
  $timeout = 0; 
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); 
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
  $file_contents = curl_exec($ch);
  curl_close($ch);
  return $file_contents;
}
?>
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I need this for the mp3 file type, since they stream songs and that's what it's for. I can probably get that myself from here though. If you're using that you might also want to randomize the dl084 in the $url between 001-100 or something too. 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	Let me know your PayPal also  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Hm I tried the first code you put and it only outputs "http://www.zshare.net/download/".. I'm on PHP 4.4.7 maybe that's a problem. 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	What's the "Expect:" this?: curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#16 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 $result actually comes up empty altogether. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#17 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 This uploads, but you get output back that looks like this: 
		
	
		
		
		
		
			if(typeof startUpload == 'function'){ startUpload("c8b4d5dda5f691b39246bed88764de41",0); } curl -v 'http://dl053.zshare.net:3000/uberupload/ubr_link_upload.php' -F '[email protected];type=audio/mpeg&TOS=1' -H 'Expect:' 
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#18 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 just change the code where it says /download to /audio 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#19 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 like this 
		
	
		
		
		
		
			Code: 
	<?php
$file = "11.mp3";
$description = "temp file description";
$post_vars = array();
$post_vars['desc'] = "$description";
$post_vars['file'] = "@$file";
$url = 'http://dl084.zshare.net:3000/';
$return = http_post_form($url, $post_vars);
$ere = explode("zshare.net/audio/",$return);
$sre = explode("/",$ere[1]);
$dlink = "http://www.zshare.net/audio/$sre[0]";
echo $dlink;
function http_post_form($url, $vars) {
  $ch = curl_init();
  $timeout = 0; 
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); 
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
  $file_contents = curl_exec($ch);
  curl_close($ch);
  return $file_contents;
}
?>
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#20 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 instead of $20 could you buy me a domain obamanutmeg.com and put the words  
		
	
		
		
		
		
			koolaid + nutmeg = obama 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#21 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Fuuuuuuuuck, it's not working. I think it's timing out. Even this is timing out: 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	$src = file_get_contents("http://dl084.zshare.net:3000/"); but I can use the above on http://www.zshare.net fine, it's just when I try to grab the upload pages that it times out :/ Is your code working for you?  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#22 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Apr 2009 
				
				
				
					Posts: 1,319
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 If file_get_contents does not work, ensure that your server is configured for "allow_url_fopen = On" 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#23 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Everything is fine in there, it just seems like I'm being blocked or something wtf.. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#24 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Find this: 
		
	
		
		
		
		
			$url = 'http://dl084.zshare.net:3000/'; Try something like this instead: $url = sprintf('http://dl0%02d.zshare.net:3000/',rand(0,99)); 
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#25 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Smokey you've tested the code and it works? What PHP version are you running? 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#26 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Yeah, I think zshare is blocking all requests that aren't either zshare.net or localhost.. but http://www.uploadmirrors.com uploads to them somehow.. 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	If I do: $src = file_get_contents("http://dl023.zshare.net:3000/uberupload/ubr_link_upload.php"); die($src); From the server on my computer (localhost) it returns the page right away. However if I try it from any hosting online the page just times out.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#27 | 
| 
			
			
			
			 scriptmaster 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2006 
				Location: Serbia 
				
				
					Posts: 5,237
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 It can't work because JS.... 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#28 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I tested the code and it worked. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#29 | 
| 
			
			
			
			 scriptmaster 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2006 
				Location: Serbia 
				
				
					Posts: 5,237
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I also tested and it can execute script... 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#30 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Man how the fuck.. maybe it's some PHP setting I have wrong. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |