wordpress te konu actıgın zaman arama motorlarına ping atar... wordpress ve joomla nın en guzel ozellıgı bu bence.. şu kodu kendıne gore edıtle.. basarılı olacaksın

bu alttaki sitemap için ping atmak...
function pingGoogleSitemaps( $url_xml )
{
$status = 0;
$google = 'www.google.com';
if( $fp=@fsockopen($google, 80) )
{
$req = 'GET /webmasters/sitemaps/ping?sitemap=' .
urlencode( $url_xml ) . " HTTP/1.1\r\n" .
"Host: $google\r\n" .
"User-Agent: Mozilla/5.0 (compatible; " .
PHP_OS . ") PHP/" . PHP_VERSION . "\r\n" .
"Connection: Close\r\n\r\n";
fwrite( $fp, $req );
while( !feof($fp) )
{
if( @preg_match('~^HTTP/\d\.\d (\d+)~i', fgets($fp, 128), $m) )
{
$status = intval( $m[1] );
break;
}
}
fclose( $fp );
}
return( $status );
}
Fonksiyonun çıktı olarak 200, 404 gibi HTTP Status kodları veriyor, eğer sonuç 200 ise ping atma işlemimiz başarılı olmuş demektir, kullanımına bir örnek;
if (200 === ($durum=pingGoogleSitemaps('http://www.codekodu.com/sitemap.xml')))
echo "Ping Basarili.
Durum Kodu: $durum.";
else
echo "Ping Basarisiz.
Durum Kodu: $durum.";bu alttaki belli başlı arama motorları(wordpress cilere yardımı olur)
http://rpc.pingomatic.com/
http://ping.myblog.jp/
http://www.blogpeople.net/servlet/weblogUpdates
http://ping.ask.jp/xmlrpc.m
http://ping.namaan.net/rpc
http://blogsearch.google.com.co/ping/RPC2
http://rpc.reader.livedoor.com/ping
http://blogsearch.google.fi/ping/RPC2
http://blogsearch.google.com.sg/ping/RPC2
http://blogsearch.google.com.tr/ping/RPC2
http://blogsearch.google.ro/ping/RPC2
Blogoon [?????] ?????
http://blogsearch.google.co.jp/ping/RPC2
http://blogsearch.google.lt/ping/RPC2
http://blogsearch.google.pt/ping/RPC2
http://r.hatena.ne.jp/rpc
http://blogsearch.google.com.do/ping/RPC2
http://blogsearch.google.pl/ping/RPC2
http://blogsearch.google.se/ping/RPC2
http://blogsearch.google.co.th/ping/RPC2
http://blogsearch.google.tw/ping/RPC2
http://blogsearch.google.com.au/ping/RPC2
http://blogsearch.google.com.tw/ping/RPC2
http://blogsearch.google.com.uy/ping/RPC2
http://blogsearch.google.com.vn/ping/RPC2
http://ping.rss.drecom.jp/
http://blogsearch.google.com.mx/ping/RPC2
http://serenebach.net/rep.cgi
http://blogsearch.google.com.br/ping/RPC2
http://blogsearch.google.de/ping/RPC2
http://api.my.yahoo.co.jp/RPC2
http://blogsearch.google.com.pe/ping/RPC2
http://blogsearch.google.com.ua/ping/RPC2
http://blogsearch.google.com.my/ping/RPC2
http://blogsearch.google.hr/ping/RPC2
http://blogsearch.google.us/ping/RPC2
http://blogsearch.google.co.ve/ping/RPC2
http://blogsearch.google.jp/ping/RPC2
http://blogsearch.google.co.za/ping/RPC2
http://blogsearch.google.co.uk/ping/RPC2
http://blogsearch.google.fr/ping/RPC2
http://blogsearch.google.cl/ping/RPC2
http://blogsearch.google.it/ping/RPC2
http://blogsearch.google.ch/ping/RPC2
http://blogsearch.google.be/ping/RPC2
http://blogsearch.google.co.hu/ping/RPC2
http://blogsearch.google.es/ping/RPC2
http://blogsearch.google.ae/ping/RPC2
http://blogsearch.google.bg/ping/RPC2
http://blogsearch.google.co.in/ping/RPC2
http://blogsearch.google.com.sa/ping/RPC2
http://blogsearch.google.at/ping/RPC2
http://blogsearch.google.ca/ping/RPC2
http://blogsearch.google.sk/ping/RPC2
http://blogsearch.google.gr/ping/RPC2
http://blogsearch.google.co.il/ping/RPC2
http://ping.weblogalot.com/rpc.php
http://ping.fc2.com/
http://ping.kutsulog.net/
http://blogsearch.google.com.ar/ping/RPC2
http://rpc.technorati.com/rpc/ping
Standup dad
http://rpc.pingomatic.com/
??? ??? ?? - ??? ??????? ?????
Hot Celebs Home
Photolog de la galerie virtuelle
Coke and Menthos
http://ping.speenee.com/xmlrpc
http://www.bloglines.com/ping
http://blogsearch.google.co.it/ping/RPC2
http://blogsearch.google.co.id/ping/RPC2
http://blogsearch.google.co.cr/ping/RPC2
http://blogsearch.google.nl/ping/RPC2
Blogbot
ping.blogranking.net
http://rpc.technorati.jp/rpc/ping
http://blogsearch.google.ie/ping/RPC2
http://blog.with2.net/ping.php
http://blogsearch.google.com/ping/RPC2
http://blogsearch.google.ru/ping/RPC2
http://blogsearch.google.in/ping/RPC2
http://api.my.yahoo.com/RPC2
http://rpc.weblogs.com/RPC2
en güzeli ise bu ... alttaki scripti kendıne gore duzenle... konu ac sayfanda include ile çağır.. olay bu kadar
function ping_at($adresim,$pingserver)
{
$mesaj='<?xml version="1.0"?>
<methodCall>
<methodName>weblogUpdates.extendedPing</methodName>
<params>
<param>
<value>Gökhan Akın</value>
</param>
<param>
<value>http://www.gokhanakin.com/</value>
</param>
<param>
<value>'.$adresim.'</value>
</param>
</params>
</methodCall>';
$ust_mesaj='POST /ping/RPC2 HTTP/1.0
User-Agent: request
Host: blogsearch.google.com
Content-Type: text/xml
Content-length: '.strlen($mesaj);
$yolla=$ust_mesaj."\n\n".$mesaj;
$fp=@fsockopen($pingserver, 80, $hata_no, $hata_mesaj);
if(!fputs($fp, $yolla, strlen($yolla)))
{
return "Veri Gönderilemiyor";
}
$sonuc='';
// Doğru işlem yapmışmıyız ? || kontrol Başlangıç
while($oku=fread($fp, 32768))
{
$sonuc.=$oku;
}
if(eregi('Thanks for the ping',$sonuc))
return $pingserver.' adresine ping yollandı<br>';
else
return $pingserver.' adresine ping YOLLANAMADI<br>';
// Doğru işlem yapmışmıyız? || kontrol Bitiş
}sevgiler , saygılar