Jump to content

[SOLVED] cURL/PHP - Outputting Different Data


clookid

Recommended Posts

  • Replies 70
  • Created
  • Last Reply

Top Posters In This Topic

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
Share on other sites

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:$password@api.del.icio.us/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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • 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.