1
PHP: Ping your sitemaps XML. Free Script
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!






This is very useful and can be set as cron.Thanks! :)
Yea, CRON is really good example of using this class.
Thanks for this nice share :)
I found the yahoo ping always returned a limit exceeded error, so I changed the ping URL to:
http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=yahoo appid]&url=http://www.swordfoxdesign.co.nz/sitemap.xml
Get your yahoo app id here: https://developer.apps.yahoo.com/wsregapp/
Great class though thanks.