<?php
 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 );
}
if( 200 === ($status=pingGoogleSitemaps('http://facebookvideoindir.leyfear.com/harita.xml')) )
   @report( "Ping to Google Sitemaps successful.\r\n\r\nStatus code: $status.", REPORT_MODE );
else
   @report( "Cannot ping/connect to Google Sitemaps.\r\n\r\nStatus code: $status.", REPORT_MODE );
// end the script. ?>
pingletme kodum bu arkadaşlar fakat son konu eklendikce pinglese nasıl olur bu koddan bişi anlamadım ping.php diye kaydeiyom ve açıyom pingliyor bunu invude ediyom en alta bu sefer her sayfaya girince pingliyor :S

<?php
$so = mysql_query("SELECT * FROM tablo ORDER BY id desc LIMIT 0,1");
while($okus = mysql_fetch_array($so))
{
	include('ping.php');
}?>
şeklinde bu işlemi sadece 1 kez nasıl yaparım