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>."; Quote Link to comment 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 ? ??? Quote Link to comment 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. Quote Link to comment 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]); } ?> Quote Link to comment 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. Quote Link to comment 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 ? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
clookid Posted September 25, 2007 Author Share Posted September 25, 2007 <?php $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"); $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? Quote Link to comment 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 ?? Quote Link to comment 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. Quote Link to comment 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:$password@api.del.icio.us/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes","https://clooscript02:$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","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 />"; ?> Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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:$password@api.del.icio.us/v1/posts/add?url=$url&description=$description&extended=$note&tags=$tags&shared=yes","https://clooscript02:$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","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... Quote Link to comment 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. Quote Link to comment 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). Quote Link to comment 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 ? Quote Link to comment Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 <?php $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"); $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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
clookid Posted September 26, 2007 Author Share Posted September 26, 2007 Private message sent. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.