Archive of

Implementing Pingers

If you are interested in pinging one of the many blog pinger/update sites, you might want to consider Ping-O-Matic.  If you ping them them, they will in turn ping several services by default for you:

  • Weblogs.com
  • Blo.gs
  • Technorati
  • MyYahoo! (currently disabled)
  • BlogRolling
  • BlogChatter
  • PubSub
If you use blogging software that allows you to enter a ping URL, it's real easy.  Just add https://rpc.pingomatic.com/ to your configuration.  If you use a lesser known blogging package (*cough* PolarBlog *cough*) you may need to add it yourself or run a separate script to do the pinging for you.  I'm implementing this in PolarBlog with an option to turn it off and on using code similar to the following test code:

//--- Includes
require('XmlRpc_class.php');

define("XMLRPC_DEBUG", 1); //debugging only!!!

$method = 'weblogUpdates.ping';
$blog_name = 'PolarLava';
$blog_url = 'https://www.polarlava.com/blog/';
$site = 'rpc.pingomatic.com';
$location = '/RPC2';

$params = array(XMLRPC_prepare($blog_name),XMLRPC_prepare($blog_url));
list($stat, $result) = XMLRPC_request( $site, $location, $method, $params );
echo "STAT: $stat<br/>";
foreach ($result as $key => $value) {
  echo(" $key => $value " . '<br/>');
}


When run, this will (hopefully) return the following:
  STAT: 1
  flerror =>
  message => Pings being forwarded to 7 services!
Which indicates that this was successful.

Now before you can use this you need to grab Keith Devens' XML-RPC Library and save that in a separate include file.  That's what is really doing the heavy lifting here.

Hopefully this might be of use to you if you've been trying to figure out how to implement a pinger.  Confession time…this entry is basically a reworking of a Simple way to Ping using PHP and XML-RPC.  That's basically where all of the information you are reading here came from.  Thanks, Kris.

Brain-dead Bureaucrat

A few weeks back I wrote about wearing a LiveStrong wristband.  For me it's logical; I'm a cyclist, Lance Armstrong fan, it supports cancer victims who need assistance and my mother is a cancer survivor.  It just makes sense to me.  Unfortunately, an administrator run amok at the Virginia Beach City Public Schools just disqualified 26 cross-country runners for wearing them.  Why?  They're jewelery of course, and only religious or medical "jewelery" are allowed.

It's good to see a positive message for kids of all ages being squashed by an overzealous school bureaucrat.  Fortunately for me I would have been allowed to wear mine because cycling is my religion!

10/14/2004
Well it seems that the bureaucrats who made this blunder have reversed this decision after getting inundated with complaints from rational, sane people.