clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Where abouts should I add it? After which line? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355494 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 After curl_exec($pCurl); Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355495 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/ipsecure/public_html/test.php on line 19 Â Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/ipsecure/public_html/test.php on line 19 Â IP Secured has successfully been submitted to clooscript01. IP Secured has successfully been submitted to clooscript02. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355496 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 ok comment the statement ad try it Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355497 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Comment which statement? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355498 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 //curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); Â :'( Like this Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355499 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Removed the errors, but hasn't made the submission. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355501 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 I askked whether the code is working .. because here i am behind proxy and having problems testing ur code. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355506 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 If it hasn't made the submission, it hasn't worked. Has it? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355510 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 Dont put a question to me buddy .. I just wanted to whether it worked or not.. Â I am not a freelancer and I dont work for money here. Â I just want to help you guys out.. thats it. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355511 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Sorry. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355513 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 I will send a new code try that. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355514 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Okay, thank you. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355516 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 I have tried with a new curl opt... Â Check whether this thing works.. Â <?php $servers = array("https://api.del.icio.us/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); $proxies = array("192.17.239.250:3127");//192.17.239.250:3127"); $usernames=array("clooscript01"); $password = "*******"; //Password Shadowed $title = "IP Secured Test By Shankar"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; for($i=0; $i<count($servers); $i++) { $var=$usernames[$i].":".$password; //echo $var; $pCurl = curl_init($servers[$i]); curl_setopt($pCurl, CURLOPT_PROXY, $proxies[$i]); curl_setopt($pCurl, CURLOPT_HTTPAUTH,CURLAUTH_ANY); curl_setopt($pCurl,CURLOPT_USERPWD,$var); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); curl_close($pCurl); } //https://clooscript02:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes //128.8.126.112:3124 echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01.<br />"; ?> Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355520 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 The submission has not been made. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355524 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 I found out where the problem is.. Â Â I will send the code soon. Â Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355542 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Great! Thank you. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-355908 Share on other sites More sharing options...
d.shankar Posted September 27, 2007 Share Posted September 27, 2007 Here is the code clookid ! Â <?php $proxies = array("192.17.239.250:3127","128.8.126.112:3124","192.17.239.250:3127"); $usernames=array("clooscript01","clooscript02","clooscript03"); $password = "******"; $title = "IP Secured Test"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured%20Final"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxify"; for($i=0; $i<count($usernames); $i++) { $var=$usernames[$i].":".$password; $pCurl = curl_init("https://api.del.icio.us/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); curl_setopt($pCurl, CURLOPT_HTTPAUTH,CURLAUTH_ANY); curl_setopt($pCurl, CURLOPT_USERPWD,$var); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); curl_close($pCurl); echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/$usernames[$i]'>$usernames[$i].<br />"; } ?> Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-356171 Share on other sites More sharing options...
clookid Posted September 27, 2007 Author Share Posted September 27, 2007 THAT ROCKS!! Thank you soooo much!! What's your PayPal Email, I would like to send you a little bonus for all of your help and as an apology for my attitude. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-356181 Share on other sites More sharing options...
d.shankar Posted September 27, 2007 Share Posted September 27, 2007 No buddy i dont need anything. I wish you luck in your future coding. ;D Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-356185 Share on other sites More sharing options...
clookid Posted September 27, 2007 Author Share Posted September 27, 2007 Alright then... THANK YOU!! Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/3/#findComment-356189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.