Webmaster Forum

Go Back   Webmaster Forum > Marketing Forums > SEO Forum

SEO Forum Search engine optimization discussions.

LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 04-26-2010, 07:59 AM
Contributing Member
Join Date: 10-03-08
Posts: 63
iTrader: 0 / 0%
ping all ping-service-site for non-blog website

I got a nice script from this blog. this is really problem to me because my site is php site, so i didnt got listed fast everytime i posted content. it doesnt have ping service that run everytime u post content like wordpress. this script is really helpfull. put it on loading after post content page.

source : http://snippets.dzone.com/posts/show/3329
PHP Code:
// Please, edit these variables to your needs

$blogTitle="Title Of your blog";
$showDebugInfo=FALSE// Do you want verbose output?

   // Stop editing here

   // PingRPC.php
   // 2007 by Sascha Tayefeh
   // [url]http://www.tayefeh.de[/url]
   // This is a PHP5-based XML-RPC ping script. It reads a one-column
   // fully qualified URL-list from a file ($pingListFile). Here is
   // an example how this file must look like:
   // ----------------------
   // [url]http://rpc.icerocket.com:10080/[/url]
   // [url]http://rpc.pingomatic.com/[/url]
   // [url]http://rpc.technorati.com/rpc/ping[/url]
   // [url]http://rpc.weblogs.com/RPC2[/url]
   // ----------------------

$userAgent="pingrpc.php by tayefeh";

// Read pinglist file. Must contain one fully qualified URL
   // (e.g: [url]http://rpc.technorati.com/rpc/ping[/url]) PER LINE (-> 
   // delimiter is an ASCII-linebreak)
   while ( ! 
feof$fp) )
$line trim(fgets$fp4096));
// get the hostname
$host=$line// Make a copy of $line
$host=preg_replace('/^.*http:\/\//','',$host); // Delete anything before http://
$host=preg_replace('/\/.*$/','',$host); // Delete anything after behind the hostname

      // get the path 
$path=$line// Make another copy of $line
$path=preg_replace('/^.*http:\/\/[a-zA-Z0-9\-_\.]*\.[a-zA-Z]{1,3}\//','',$path,-1,$replacementCount); // Delete anything before the path
if(!$replacementCount$path=''// if there was no replacement (i.e. no explicit path), act appropiately
"<h1>Ping process started</h1>";

"<p>Reading URLs from file $pingListFile: ";
count($myList)." urls read.</p>";

// Use DOM to create the XML-File
$xml= new DOMDocument('1.0');

// Create the xml structure

// Set the node values

$xmlrpcReq $xml->saveXML(); // Write the document into a string
$xmlrpcLength strlen$xmlrpcReq ); // Get the string length.

echo "Here&apos;s the xml-message I generated (size: $xmlrpcLength bytes):";



// Proceed every link read from file
foreach ( $myList as $host => $path)
$showDebugInfo) echo "<hr/>";

"<dt><strong>Pinging host: $host  </strong>";
$httpReq  "POST /" $path " HTTP/1.0\r\n";
$httpReq .= "User-Agent: " $userAgent"\r\n";
$httpReq .= "Host: " $host "\r\n";
$httpReq .= "Content-Type: text/xml\r\n";
$httpReq .= "Content-length: $xmlrpcLength\r\n\r\n";
$httpReq .= "$xmlrpcReq\r\n";

"<dd><strong>Request:</strong><pre><span style=\"color: #cc9900\">".htmlentities($httpReq)."</span></pre>";
"<strong>Answer</strong>:<span style=\"color: #99cc00\"><pre>";

// Actually, send ping
if ( $pinghandle = @fsockopen$host80 ) )
fputs$pinghandle$httpReq );
     while ( ! 
feof$pinghandle ) )
$pingresponse = @fgets$pinghandle128 );
$showDebugInfo) echo htmlentities($pingresponse);
fclose$pinghandle );
$showDebugInfo) echo "</span></pre></dd>";

and this is the rpc ping site list 2010 :


hope it helpful
lirik lagu indonesia terbaru

Last edited by HTMLBasicTutor; 04-26-2010 at 08:10 AM.
Reply With Quote



Go Back   Webmaster Forum > Marketing Forums > SEO Forum


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script/soft to ping our blog on ping service El-Cherubin Coding Forum 7 09-02-2009 03:31 PM
How to Ping a Blog or Website? tcyonline.com SEO Forum 24 07-02-2009 05:00 AM
blog Ping site list virp123 Blog Promotion 15 01-06-2009 11:17 PM
which ping service do you use? shahbaz419 Blogging Forum 17 09-25-2007 08:37 AM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 06:13 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC

Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.