Haber Eklerken Google a Ping Atma

if($insert){
	//PİNG ATIYORUZ GOOGLE LA 
$services = array(
        'http://www.google.com/webmasters/sitemaps/ping?sitemap=###',
        'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=###',
        'http://webmaster.live.com/ping.aspx?siteMap=###',
        'http://www.bing.com/webmaster/ping.aspx?siteMap=###',
        'http://submissions.ask.com/ping?sitemap=###',
		'http://rpc.weblogs.com/pingSiteForm?name='.url.'&url=###'
    );
    $mysitemapfile = url.'/sitemap.xml';
    foreach($services as $service){
        $url = str_replace('###', $mysitemapfile, $service);
        @file($url);
    }
// PİNG BİTTİ

 


1 Yorum

  • olayspor / 7 yıl önce

    bu kodu nereye eklicez..