Webmaster Linkup for adult seo, chat and advice
Home


Go Back   WebmasterLinkup > Rookie Webmasters > Design & Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Design & Programming Design & Programming Q & A

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2008, 10:37 PM
imvain2 imvain2 is offline
Member
member
Board Sponsor
MAD @ IT Productions
Join Date: Oct 2003
Posts: 96
imvain2
Thumbs up PHP Source Code: Search Engine Sitemap Pinger

Here is a simple code that I made that "pings" Google, Yahoo, ASK and MSN with your sitemaps.org protcol sitemap.


Code:
$sitemapurl = "http://yourdomain/sitemap.xml";
        $Yahoo = "http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=" . $sitemapurl;
        $MSN = "http://webmaster.live.com/ping.aspx?siteMap=" . $sitemapurl;
        $ASK = "http://submissions.ask.com/ping?sitemap=" . $sitemapurl;
        $Google = "http://www.google.com/webmasters/sitemaps/ping?sitemap=" . $sitemapurl;
        $GoogleResponse = file_get_contents($Google);
        $MSNResponse = file_get_contents($MSN);
        $YahooResponse = file_get_contents($Yahoo);
        $ASKResponse = file_get_contents($ASK);
        if(strpos($GoogleResponse, "Your Sitemap has been successfully")!==false){
            $GoogleStatus = "Successful";
        }
        else{
            $GoogleStatus = "<b style=\"color:red;\">UnSuccessful</b>";
        }
        if(strpos($MSNResponse, "Thanks for submitting your sitemap")!==false){
            $MSNStatus = "Successful";
        }
        else{
            $MSNStatus = "<b style=\"color:red;\">UnSuccessful</b>";
        }
        if(strpos($YahooResponse, "Update notification has successfully submitted")!==false){
            $YahooStatus = "Successful";
        }
        else{
            $YahooStatus = "<b style=\"color:red;\">UnSuccessful</b>";
        }
        if(strpos($ASKResponse, "Your Sitemap has been successfully received")!==false){
            $ASKStatus = "Successful";
        }
        else{
            $ASKStatus = "<b style=\"color:red;\">UnSuccessful</b>";
        }
        echo "<b>Google's Sitemap submission:</b> " . $GoogleStatus . "<br>";
        echo "<b>Yahoo's Sitemap submission:</b> " . $YahooStatus . "<br>";
        echo "<b>MSN's Sitemap submission:</b> " . $MSNStatus . "<br>";
        echo "<b>ASK's Sitemap submission:</b> " . $ASKStatus . "<br>";
__________________
Free Kama Sutra Videos, embed directly into your website!
kama sutra videos | kama sutra products
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New search engine fraggle Search Engines 0 10-07-2004 11:22 AM
Google Checksum algo (source code here) fraggle Intro's & General Topics 0 07-04-2004 09:22 PM
MSN - New search engine fraggle Search Engines 4 07-02-2004 11:01 AM
What search Engine ?? Rene Intro's & General Topics 9 11-21-2003 09:29 AM
MS help Search engine fraggle Security Forum 0 10-08-2003 11:38 AM



All times are GMT. The time now is 11:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2010 :: jvbPlugin R1012.367.1


 

Your Ad Here