09-25-2007, 01:46 AM
|
#3 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 8
Thanks: 0
|
PHP Code:
<?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 />";
?>
I have been working at the script for a while and the above works. I would like to know how to add a second url / proxy. :)
Last edited by clookid : 09-25-2007 at 11:02 AM.
|
|
|
|