Pinging using XML-RPC

As I've just wrote, pinging is used for announcing other sites over the internet (mainly blog directories, content aggregators and social media sites). XML-RPC is one of the most common methods to acquire this task if you want to create your own scripts or to modify the current existing scripts on your server.

XML-RPC it's a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet.

XML-RPC is also a remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.

There are two ways to ping another site: simple ping (with only the minimum data - the required information about the site), and extended ping (with some additional data). The XML-PRC library designed for php can be downloaded from here: http://sourceforge.net/projects/phpxmlrpc/

XML-RPC Ping:


require('class/lib/xmlrpc.inc');

$client = new xmlrpc_client('http://rpc.pingomatic.com/');

//simple ping ('title','url')

$message = new xmlrpcmsg('weblogUpdates.ping', array(
new xmlrpcval('Optimizing my site'),
new xmlrpcval('http://www.webdesign-software-code-seo.com')
));

$response = $client->send($message);

if($response->faultCode() == '0'){ echo 'it works'; }

 

Extended XML-RPC Ping:


require('class/lib/xmlrpc.inc');

$client = new xmlrpc_client('http://rpc.pingomatic.com/');

//extended ('title','url','updated_url','rssfeed','keyword1|keyword2|tag')

$message = new xmlrpcmsg('weblogUpdates.extendedPing', array(
new xmlrpcval('Optimizing my site'),
new xmlrpcval('http://www.webdesign-software-code-seo.com'),
new xmlrpcval('http://www.webdesign-software-code-seo.com/very-true/'),
new xmlrpcval('http://feeds.feedburner.com/greentwinkiecom'),
new xmlrpcval('seo|search engine optimization|Optimizing my site')
));

$response = $client->send($message);

if($response->faultCode() == '0'){ echo 'it works'; }

 

You can found here: http://xmlrpc.scripting.com/ more information about what is XML-RPC is and how to handle the code.

The most important thing that you should know for now is not to abuse of this. If you send too many pings from the same URL or site in a short period of time you may be banned for that URL, or even that specific IP. As I read over the internet some considered (or still consider) XML-RPC pinging as Black Hat SEO because it could be used to get to the first page on the search result for the long-tail words in a very short period of time... but the pings does not count so much in the present time. They are still used with success to promote the sites.

Related Articles

seo search engine optimisation The search engine optimisation part is very important for websites - they have to match certain criteria in order to appear as often as possible in the search results on Google and Bing. SEO (search engine optimization) starts from site / online store / platform development because it involves a specific structure of the pages, it involves an ease to browse for the visitors (for your clients) and it involves quicky loading when accessed. Our sites are delived already optimized, but if you have already a solution developed by someone else we analize your website and we offer consultancy - we'll tell you about the options you have about to boost its visibility and organic traffic.

realizăm site-uriWe develop websites to present your activity to the world and applications for internet that help you organize your activity as eficient as possible and without loses (in money, time and energy) wherever you are. Do you need an online store or a tool available for you anytime? We can develop that as long you reserve a domain name and some hosting space, the app is our job.

As an extension to your site or web app we can provide an app for your smartpone / table to keep you always informed about what's happening with the product already developed.

developing appsWe develop web applications and mobile apps (Android) for various companies and organisations according to their specifications and requirements. The apps are being used by employees and partners to work more efficient and with less costs for the company: the web applications can be accessed through the browsers installed on smartphones and tablets but the usage of a complementary mobile app can make efficiency to go up (it can increase the communication between people or it can show things not so important on PC).

We offer support for the applications used now and we develop them further using modern technologies.

Consulting bussiness online / itWe offer consultancy about the informatic system you have installed and we offer sollutions to make the more efficient, to improve and develop them further, we analize the activities inside your company and / organisation and we offer sollutions for the projects you want to develop.

If you don't have a website, an online store, a web application or a mobile app (Android) but you want to develop one for yourself or your company we offer the initial consultancy, the one that's necessary before starting anything about such project.

Share this URL on social social

"Cu capãtul arcurilor, trecînd,
rãzboinicii
mîngîie roua..."

Yosa Buson (1715-1783)

facebook sharing button
twitter sharing button
messenger sharing button
reddit sharing button
wordpress sharing button
whatsapp sharing button
tumblr sharing button
pinterest sharing button
blogger sharing button