This function can be used to ping search engines when your sitemap changes. Yahoo has deprecated (and will discontinue) their ping service, so I took them out. If you know of any other search engines worth considering, be sure to share them with the rest of us in your comments.

$sitemap The sitemap that you want to ping to the search engines. The default is http://www.your-website.com/sitemap.xml
Returns An error if a ping was unsuccessful.
Example
ping_search_engines();
Download