clookid Posted September 25, 2007 Author Share Posted September 25, 2007 Yes, it was the same before. http://del.icio.us/clooscript01 What we are attempting to do is to get the script to work, so that it actually submits the website to del.icio.us If that were the case, I would just code: echo "<a href='http://www.ipsecured.info' alt='IP Secured'>IP Secured</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01</a>."; Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354691 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 So what you are trying to do to add www.ipsecured.info to del.icio.us Automatically ?? Am i right ? ??? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354692 Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 When you visit http://www.ipsecured.info/test.php, IP Secured should then be submitted to multiple del.icio.us accounts. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354703 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 Your task is done. I remodified the arrays. <?php function file_get_contents_proxy($szURL,$szProxy) { $pCurl = curl_init($szURL); curl_setopt($pCurl, CURLOPT_PROXY, $szProxy); curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); if($pCurl) { echo "<a href='$szurl' alt='$title'>$title has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01."; } } $password = "******"; $title = "IP Secured"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; $servers =array("https://clooscript01:".$password."@api.del.icio.us/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); $proxies =array("192.17.239.250:3127"); for($i=0;$i<count($servers);$i++) { file_get_contents_proxy($servers[$i],$proxies[$i]); } ?> Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354784 Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 I hate to say it, but it hasn't worked for me. It also looks like there are a few missing / mis-named variables. It looks like it's missing $szURL and $szProxy. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354802 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 Did you check del.icio.us ?? The code has added the link. Btw...What error are you getting ?? ??? Could you send me the screenshot or something ? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354804 Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 I am not getting any errors at all. I understand that the link has been submitted but it was obviously when you or I, for that matter, were fiddling around with different codes. I have deleted the submission and have tried to add it again (using an unmodified version of your script), but I have failed. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354805 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 ok i will try from my end now. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354808 Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 <?php $servers = array("https://clooscript01:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); $proxies = array("192.17.239.250:3127"); $password = "***"; $title = "IP Secured"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; function file_get_contents_proxy($servers, $proxies) { $pCurl = curl_init($servers); curl_setopt($pCurl, CURLOPT_PROXY, $proxies); curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); } for($i=0; $i<count($servers); $i++) { file_get_contents_proxy($servers[$i], $proxies[$i]); } echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01.<br />"; ?> This works. How do I add a second submission, though? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354811 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 This was the code i previously sent i think you didnt change anything ?? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354814 Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 Yes, I changed the variables and the order of the code. But, I need to know how to use multiple urls / proxies. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354828 Share on other sites More sharing options...
d.shankar Posted September 25, 2007 Share Posted September 25, 2007 I have added two ips.. you can add the remaining as shown. <?php $servers = array("https://clooscript01:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes","https://clooscript02:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes" $proxies = array("192.17.239.250:3127","128.8.126.112:3124"); $password = "******"; $title = "IP Secured"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; function file_get_contents_proxy($servers, $proxies) { $pCurl = curl_init($servers); curl_setopt($pCurl, CURLOPT_PROXY, $proxies); curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); } for($i=0; $i<count($servers); $i++) { file_get_contents_proxy($servers[$i], $proxies[$i]); } echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript02'>clooscript02.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript03'>clooscript03.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript04'>clooscript04.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript05'>clooscript05.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript06'>clooscript06.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript07'>clooscript07.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript08'>clooscript08.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript09'>clooscript09.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript10'>clooscript10.<br />"; ?> Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-354836 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 The above code does not work for me. It loads the echo's but none of the data is inserted into my del.icio.us profiles. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355391 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 Post your code i will try to rectify it again. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355452 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 All of the code that you need is already in this thread. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355465 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 You said the code worked before and now you say the code doesnt work. I have clearly given you the idea how to add further domains in my previous post. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355466 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Yes, but when you add a second domain, none of them work. :'( Visit: http://www.ipsecured.info/test.php Source: <?php $servers = array("https://clooscript01:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes","https://clooscript02:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); $proxies = array("192.17.239.250:3127","128.8.126.112:3124"); $password = "*******"; $title = "IP Secured"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; function file_get_contents_proxy($servers, $proxies) { $pCurl = curl_init($servers); curl_setopt($pCurl, CURLOPT_PROXY, $proxies); curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); } for($i=0; $i<count($servers); $i++) { file_get_contents_proxy($servers[$i], $proxies[$i]); } echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript02'>clooscript02</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript03'>clooscript03</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript04'>clooscript04</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript05'>clooscript05</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript06'>clooscript06</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript07'>clooscript07</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript08'>clooscript08</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript09'>clooscript09</a>.<br />"; echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript10'>clooscript10</a>.<br />"; ?> Visit: http://del.icio.us/clooscript01 The script has not worked... Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355474 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 Keep only the first two echo statements and remove the remaining. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355480 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 I have just done that. But, to be honest, that isn't and hasn't made a difference to the script at all (except the output). Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355481 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 Atleast is the first one working when you add two hosts and proxies ? Or none of them is working ? Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355484 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 <?php $servers = array("https://clooscript01:[email protected]/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes"); $proxies = array("192.17.239.250:3127"); $password = "***"; $title = "IP Secured"; $url = "http://www.ipsecured.info"; $description = "IP%20Secured"; $note = "IP%20Secured%20--%20you%20no%20longer%20need%20to%20worry%20about%20filters."; $tags = "ip%20secured,%20proxy"; function file_get_contents_proxy($servers, $proxies) { $pCurl = curl_init($servers); curl_setopt($pCurl, CURLOPT_PROXY, $proxies); curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($pCurl, CURLOPT_SSL_VERIFYPEER, false); curl_exec($pCurl); } for($i=0; $i<count($servers); $i++) { file_get_contents_proxy($servers[$i], $proxies[$i]); } echo "<a href='$url' alt='$title'>$title</a> has successfully been submitted to <a href='http://del.icio.us/clooscript01'>clooscript01.<br />"; ?> The above script works. When you add a second url, it mucks up everything. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355485 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 ok send me the password to my mail or PM me. i will chk again. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355487 Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Private message sent. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355490 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 yea i got it. i am testing now Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355491 Share on other sites More sharing options...
d.shankar Posted September 26, 2007 Share Posted September 26, 2007 Add this to the file function to the cURL curl_close($pCurl); and tell me. I am behind proxy so i am struggling hard to test. Link to comment https://forums.phpfreaks.com/topic/70563-solved-curlphp-outputting-different-data/page/2/#findComment-355492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.