FREE: bulk ping url script - save yourself 20$

Status
Not open for further replies.

BackBanana

New member
Sep 2, 2008
331
12
0
shithole england
Rating - 100%
2   0   0
Here's a little script I wrote, you can ping your blog etc with it, to the popular XMLRPC ping servers, the ones that matter anyhow.

upload the code below as a .php, and run it. bung in the url of your blog/site and a title, and off you go.

Dont do this more than once every 4 hours and only if your site has changed, you can be banned.

Code:
<?
function blogPing($title,$url,$server) {
  echo "Pinging: $server,";
  
  $request = '<?xml version="1.0"?><methodCall><methodName>weblogUpdates.ping</methodName>';
  $request.= '<params><param><value>'.$title.'</value></param>';
  $request.= '<param><value>'.$url.'</value></param></params></methodCall>';
  
  $header[] = "Content-type: text/xml";
  $header[] = "Content-length: ".strlen($request) . "\r\n";
  $header[] = $request;
  
  $ch = curl_init();
  curl_setopt( $ch, CURLOPT_URL, $server); 
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); 
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $header ); 
  curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'POST' ); 
  $result = curl_exec( $ch ); 
  
  $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  curl_close($ch); 
  echo " Result: $httpcode<br />";
}

$servers[]='http://api.moreover.com/RPC2';
$servers[]='http://bblog.com/ping.php';
$servers[]='http://blogsearch.google.com/ping/RPC2';
$servers[]='http://ping.weblogalot.com/rpc.php';
$servers[]='http://ping.feedburner.com';
$servers[]='http://ping.syndic8.com/xmlrpc.php';
$servers[]='http://ping.bloggers.jp/rpc/';
$servers[]='http://rpc.pingomatic.com/';
$servers[]='http://rpc.weblogs.com/RPC2';
$servers[]='http://rpc.technorati.com/rpc/ping';
$servers[]='http://topicexchange.com/RPC2';
$servers[]='http://www.blogpeople.net/servlet/weblogUpdates';
$servers[]='http://xping.pubsub.com/ping';

if($_POST['url']) {
echo 'Starting ping for: '.$_POST['url'].'<br />';
  foreach($servers as $server) {
    blogPing($_POST['title'],$_POST['url'],$server);
  }
}
?>
<form method="post">
URL you want to ping: <input name="url"><br />
Title of URL: <input name="title"><br />
<input type="submit" value="Start Pinging">
</form>
 


dude, fuck you for being such an idiot. you want to thread jack and THIS is what you come up with? A shitty xml-rpc script that manually goes through HARDCODED ping servers?
shit, might as well just use my FREE ping service PingNinja - A Blog Ping Tool To Drive Traffic To Your Site! so you can at least past in what servers to ping..... if you're going to try and show off your dick, make sure when you put it on the table yours isn't the smallest.
 
I had moderator approval, i also backed down.. btw, how many people have i actually turned DOWN and sent them back to your script.. hope you've made a sale based on me being the bigger guy on this one after our conversation. PS.. notice he's also now posting code for one that replaces YOUR script. I never did anything similar. (yeah.. checkout that pastebin link he has in his profile).
 
Oh I know, I'm not bashin you here. Just mentioning it, I just kinda lol'd harmlessly.

I will give him this, this script he provided blows. Seriously would rather save the 5 second install and go to pingler or something.

This guy sucks. Brent's ping script is probably worth the $20.

BTW the pastebin he has in his sig for the autolike doesn't even work :-p Silly guy.
 
Now you can specify the urls and the servers, simples.

Enjoy

Code:
<?
function getTitle($url)
{
        $dom = new DOMDocument();

        if($dom->loadHTMLFile($url)) {

            $list = $dom->getElementsByTagName("title");
            if ($list->length > 0) {
                return $list->item(0)->textContent;
            }
        }
}

function blogPing($title,$url,$server) {
  echo "Pinging: $server,";
  
  $request = '<?xml version="1.0"?><methodCall><methodName>weblogUpdates.ping</methodName>';
  $request.= '<params><param><value>'.$title.'</value></param>';
  $request.= '<param><value>'.$url.'</value></param></params></methodCall>';
  
  $header[] = "Content-type: text/xml";
  $header[] = "Content-length: ".strlen($request) . "\r\n";
  $header[] = $request;
  
  $ch = curl_init();
  curl_setopt( $ch, CURLOPT_URL, $server); 
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); 
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $header ); 
  curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'POST' ); 
  $result = curl_exec( $ch ); 
  
  $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  curl_close($ch); 
  echo " Result: $httpcode<br />";
}

if($_POST['urls']) {
$urls=explode("\n",$_POST['urls'];
$servers=explode("\n",$_POST['servers'];
foreach($urls as $url) {
  $title=getTitle(trim($url));
	if($title) {
    echo 'Starting ping for: '.trim($url).'<br />';
      foreach($servers as $server) {
        blogPing($_POST['title'],trim($url),trim($server));
      }
    }
	} else {
	echo "title not found in $url, skipping.<br />";
	}
}
?>
<form method="post">
XMLRPC Servers you want to Ping (seperate with a new line):<br />
<textarea name="servers"></textarea>

URLs you want to ping (seperate with a new line):<br />
<textarea name="urls"></textarea><br />
<input type="submit" value="Start Pinging">
</form>
 
dude, fuck you for being such an idiot. you want to thread jack and THIS is what you come up with? A shitty xml-rpc script that manually goes through HARDCODED ping servers?
shit, might as well just use my FREE ping service PingNinja - A Blog Ping Tool To Drive Traffic To Your Site! so you can at least past in what servers to ping..... if you're going to try and show off your dick, make sure when you put it on the table yours isn't the smallest.

As with any code given away for free, it's there for education; not the end-all-be-all amazing solution that does everything. Yes, those that have the knowledge can make their own much better, but for those people wanting something to learn from, it's still useful.

If you don't want to keep giving his thread free advertising, just stop posting. It'll eventually die off and occasionally be bumped by some noob thanking him for the info.
 
threading is easy, thats what curl multi exec is for, thanks for the idea, i'll update this free script shortly.

In the interest of fairness, I just added multithreading into it for both you guys, so shut up now. The important bits are at the bottom of the code.

 
if u could see the shit eating grin on my face from the moment he posted that first 'heres a free version' after looking at the code.. plus the fact he just claimed he's so rich he'll send me 1k just to shut me up (a quote mind you)... you'd be laughing too :)
 
wow, you're a pretty serious guy.

if i was rich i wouldn't be here, i'd be there, selling scripts for 20$!

I'm sorry I upset you, if I had known you would get your knickers in a twist over it i'd have charged 19$.
 
wow, you're a pretty serious guy.

if i was rich i wouldn't be here, i'd be there, selling scripts for 20$!

I'm sorry I upset you, if I had known you would get your knickers in a twist over it i'd have charged 19$.

wow. internet tough guy are we now backing down?
did u not realize every reply has been lolz from me just getting you more heated... not to mention you've been dickrolled in this thread?

this is a joke, u have no idea what i do for a living.. just the fact you're messaging me that you're filthy rich + offering out cash.... then calling me puppy, i just figured i'd end it and call you out. As i said, i'm dumping scripts.... where's my 1k? Do you even have 1k in your bank account to wire out? ahh didn't think so... bitch.

if you want to post free code... do it where people can actually use it (here it'll just dissappear as all the other offers of crap push down posts like this).... if you want to sell something... sell it... if you want to threadjack like a 'tard and be mr. macho man randy savage... take it back to warrior forum
 
Status
Not open for further replies.