Jump to content

[SOLVED] cURL/PHP - Outputting Different Data


clookid

Recommended Posts

  • Replies 70
  • Created
  • Last Reply

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.

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 />";

?>


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 />";
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.