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