My site uses a sitemap generator that rebuilds the sitemap XML file whenever content is updated, and then (per Google specs) sends them an http request to tell them the sitemap is updated.
This appears to be working fine, as every time it runs, at the top of the page is displayed some response data from Google (sitemap received, etc.)
Is there something I can do to prevent this from being displayed at the top of my page? Maybe some way to "exec" offline - if that makes sense?
Here's the curl bit:
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2Fwww.mysite.com%2Fsitemap.xml");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);*/