Ping PingOMatic





8
Date Submitted Tue. Feb. 21st, 2006 9:45 PM
Revision 1 of 2
Coder mattrmiller
Tags PHP | Ping | PingOMatic
Comments 0 comments
Ping, PingOMatic service for an updated. Requires: The Inutio XML-RPC Library.


function pingOMatic($strName, $strURL, $strRSSURL = "")
{
        // Require ping class
        require_once("IXR.php");

        // Using a timeout of 3 seconds should be enough to cover slow servers
        $cClient = new IXR_Client("http://rpc.pingomatic.com", false, 80, 3);

        // when set to true, this outputs debug messages by itself
        $cClient->debug = true;
       
        if (!$cClient->query("weblogUpdates.extendedPing", $strName, $strURL, $strRSSURL))
        {
                $cClient->query("weblogUpdates.ping", $strName, $strURL);
        }
}
 

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

There are currently no comments for this snippet.

Voting