Source Code Auto Ping Site


Script dibawah ini adalah script untuk autoping website. kita langsung coba aja script di bawah ini:

simpan code di bawah ini dengan nama autoping.php

<?php

//********************************************************

$sitetitle=’Obat Wasir dan Ambeien Manjur di Obatwasir.biz | SURYAWIJAYA.NET‘;
$siteurl= ‘http://suryawijaya.net/blog/198/obat-wasir-dan-ambeien-manjur-di-obatwasirbiz.html&#8217;;
$changedurl=’http://suryawijaya.net/blog/198/obat-wasir-dan-ambeien-manjur-di-obatwasirbiz.html&#8217;;
$rssfeed=”;

$pingListFile=”pinglist.txt”;
$replacementCount=0;

$tags=”;

//********************************************************

$fp=fopen($pingListFile,”r”);
while ( ! feof( $fp) )
{
$line = trim(fgets( $fp, 4096));
// get the hostname
$host=$line; // Make a copy of $line
$host=preg_replace(‘/^.*http:\/\//’,”,$host); // Delete anything before http://
$host=preg_replace(‘/\/.*$/’,”,$host); // Delete anything after behind the hostname

// get the path
$path=$line; // Make another copy of $line
$path=preg_replace(‘/^.*http:\/\/[a-zA-Z0-9\-_\.]*\.[a-zA-Z]{1,3}\//’,”,$path,-1,$replacementCount); // Delete anything before the path
if(!$replacementCount) $path=”; // if there was no replacement (i.e. no explicit path), act appropiately
if($host) $myList[$host]=$path;
}

foreach ( $myList as $host => $path)
{
$data =
“<?xml version=\”1.0\” encoding=\”iso-8859-1\”?>\r\n”
.”<methodCall>\r\n”
.” <methodName>weblogUpdates.extendedPing</methodName>\r\n”
.” <params>\r\n”
.” <param>\r\n”
.” <value>$sitetitle</value>\r\n”
.” </param>\r\n”
.” <param>\r\n”
.” <value>$siteurl</value>\r\n”
.” </param>\r\n”
.” <param>\r\n”
.” <value>$changedurl</value>\r\n”
.” </param>\r\n”
.” <param>\r\n”
.” <value>$rssfeed</value>\r\n”
.” </param>\r\n”
.” <param>\r\n”
.” <value>$tags</value>\r\n”
.” </param>\r\n”
.” </params>\r\n”
.”</methodCall>”;
$len = strlen($data);
$out = “POST /ping/RPC2 HTTP/1.0\r\n”;
$out .= “User-Agent: request\r\n”;
$out .= “Host: “.$host.”\r\n”;
$out .= “Content-Type: text/xml\r\n”;
$out .= “Content-length: $len\r\n\r\n”;
$out .= $data;

$fp=fsockopen($host,80,$errno,$errstr);
if(!$fp) return;
fwrite($fp, $out);
while(!feof($fp)) fgets($fp,128);
fclose($fp);
}
?>

simpan dengan nama pinglist.php, 

http://api.moreover.com/RPC2
http://api.my.yahoo.co.jp/RPC2
http://api.my.yahoo.com/RPC2
http://audiorpc.weblogs.com/RPC2
http://blog.goo.ne.jp/XMLRPC
http://blogpeople.net/ping
http://blogsearch.google.ae/ping/RPC2
http://blogsearch.google.at/ping/RPC2
http://blogsearch.google.be/ping/RPC2
http://blogsearch.google.bg/ping/RPC2
http://blogsearch.google.ca/ping/RPC2
http://blogsearch.google.ch/ping/RPC2
http://blogsearch.google.cl/ping/RPC2
http://blogsearch.google.co.cr/ping/RPC2
http://blogsearch.google.co.hu/ping/RPC2
http://blogsearch.google.co.id/ping/RPC2
http://blogsearch.google.co.il/ping/RPC2
http://blogsearch.google.co.in/ping/RPC2
http://blogsearch.google.co.it/ping/RPC2
http://blogsearch.google.co.jp/ping/RPC2
http://blogsearch.google.co.ma/ping/RPC2
http://blogsearch.google.co.nz/ping/RPC2
http://blogsearch.google.co.th/ping/RPC2
http://blogsearch.google.co.uk/ping/RPC2
http://blogsearch.google.co.ve/ping/RPC2
http://blogsearch.google.co.za/ping/RPC2
http://blogsearch.google.com.ar/ping/RPC2
http://blogsearch.google.com.au/ping/RPC2
http://blogsearch.google.com.br/ping/RPC2
http://blogsearch.google.com.co/ping/RPC2
http://blogsearch.google.com.do/ping/RPC2
http://blogsearch.google.com.mx/ping/RPC2
http://blogsearch.google.com.my/ping/RPC2
http://blogsearch.google.com.pe/ping/RPC2
http://blogsearch.google.com.sa/ping/RPC2
http://blogsearch.google.com.sg/ping/RPC2
http://blogsearch.google.com.tr/ping/RPC2
http://blogsearch.google.com.tw/ping/RPC2
http://blogsearch.google.com.ua/ping/RPC2
http://blogsearch.google.com.uy/ping/RPC2
http://blogsearch.google.com.vn/ping/RPC2
http://blogsearch.google.com/ping/RPC2
http://blogsearch.google.de/ping/RPC2
http://blogsearch.google.es/ping/RPC2
http://blogsearch.google.fi/ping/RPC2
http://blogsearch.google.fr/ping/RPC2
http://blogsearch.google.gr/ping/RPC2
http://blogsearch.google.hr/ping/RPC2
http://blogsearch.google.ie/ping/RPC2
http://blogsearch.google.in/ping/RPC2
http://blogsearch.google.it/ping/RPC2
http://blogsearch.google.jp/ping/RPC2
http://blogsearch.google.lt/ping/RPC2
http://blogsearch.google.nl/ping/RPC2
http://blogsearch.google.pl/ping/RPC2
http://blogsearch.google.pt/ping/RPC2
http://blogsearch.google.ro/ping/RPC2
http://blogsearch.google.ru/ping/RPC2
http://blogsearch.google.se/ping/RPC2
http://blogsearch.google.sk/ping/RPC2
http://blogsearch.google.tw/ping/RPC2
http://blogsearch.google.us/ping/RPC2
http://feedsky.com/api/RPC2
http://hamo-search.com/ping.php
http://holycowdude.com/rpc/ping/
http://ping.blogoon.net/
http://ping.blogs.yandex.ru/RPC2
http://ping.fc2.com/
http://ping.feedburner.com/
http://ping.kutsulog.net/
http://ping.myblog.jp/
http://ping.namaan.net/rpc
http://ping.snap.com/ping/RPC2
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://ping.wordblog.de/
http://r.hatena.ne.jp/rpc
http://rpc.bloggerei.de/ping/
http://rpc.blogrolling.com/pinger/
http://rpc.icerocket.com:10080/
http://rpc.reader.livedoor.com/ping
http://rpc.technorati.com/rpc/ping
http://rpc.technorati.jp/rpc/ping
http://rpc.twingly.com/
http://rpc.weblogs.com/RPC2
http://wasalive.com/ping/
http://www.blogpeople.net/servlet/weblogUpdates
http://xmlrpc.blogg.de
http://xping.pubsub.com/ping/
http://zhuaxia.com/rpc/server.php

Selamat mencoba.

salam,

surya wijaya
newbie programmer

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s