ini_set('max_execution_time', 0);
function curl_get($url , $timeout = 0)
{
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
$xml = curl_exec($ch);
curl_close($ch);
return $xml;
}
$sitemap_url = 'sitemap.xml';
$title = "Feed Back";
$url[0] = "http://www.google.com/webmasters/tools/ping?sitemap=".urlencode($sitemap_url);
$url[1] = "http://www.bing.com/webmaster/ping.aspx?siteMap=".urlencode($sitemap_url);
$url[2] = "http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=YahooDemo&url=".urlencode($sitemap_url);
$url[3] = "http://submissions.ask.com/ping?sitemap=".urlencode($sitemap_url);
$url[4] = "http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=".urlencode($sitemap_url);
$url[5] = "http://webmaster.live.com/ping.aspx?siteMap=".urlencode($sitemap_url);
$url[6] = "http://rpc.weblogs.com/pingSiteForm?name=".urlencode($title)."&url=".urlencode(HOST)."&changesURL=".urlencode($sitemap_url);
foreach($url as $key => $value)
{
$xml = curl_get($value);
}işine yarar umarım, sitelerimde kullanıyorum.