Browsing articles in "SEO scripts"
kwi
1

PHP: Ping your sitemaps XML. Free Script

By shpyo  //  SEO scripts  //  4 Comments

Writing in english (systematically) is really diffucult for me. I thought it will be much easier. Anyway, today I want to show my PHP class for pinging XML sitemaps. I use this script everytime I write on my other blogs or websites.

I’ve run many test for indexing tons of spam, websites. And I tell you in secret that you can index everything with sitemaps XML. One time with, my friend, we created a sneaky XML with URLs for comparing cell phones. You know – every possible combination. Effect? Amaizing! Over 1 million indexed pages in 3 months! So pinging is very powerful weapon!

How to use it?

<?php
require_once 'sitemapPing.class.php';
$s = new sitemapPing( 'URL_TO_YOUR_SITEMAP_XML' );

$s->ping();
echo $s->showResponse();
?>

The last line in which we echo the response from server is optional. Everytime when you ping your XML file with sitemap you gor pisitive response.

Script is pinging:

  • google,
  • yahoo!,
  • bing,
  • ask.com,
  • and moreover.com

If you got any questions, fell free to ask in comments :).

[download]

Enjoy!