Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7603877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:45:52+00:00 2026-05-30T23:45:52+00:00

I am trying to ping (SEO tactic called ping is used for new content

  • 0

I am trying to ping (SEO tactic called “ping” is used for new content to get robots index it faster) Google in PHP. Only thing I know is that I need to send my request to following url:
http://blogsearch.google.com/ping/RPC2

Probably I can use PHP XML-RPC functions. I don’t know how to format my request and which method to use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:45:54+00:00Added an answer on May 30, 2026 at 11:45 pm

    As far as you’re concerned to do the XML-RPC request (Example #1).

    If you follow the specification of a pingback, it would look like this:

    $sourceURI = 'http://example.com/';
    $targetURI = 'http://example.com/';
    $service = 'http://blogsearch.google.com/ping/RPC2';
    
    $request = xmlrpc_encode_request("pingback.ping", array($sourceURI, $targetURI));
    $context = stream_context_create(array('http' => array(
        'method' => "POST",
        'header' => "Content-Type: text/xml",
        'content' => $request
    )));
    $file = file_get_contents($service, false, $context);
    $response = xmlrpc_decode($file);
    if ($response && xmlrpc_is_fault($response)) {
        trigger_error("xmlrpc: $response[faultString] ($response[faultCode])");
    } else {
        print_r($response);
    }
    

    Which would give you the following output:

    Array
    (
        [flerror] => 
        [message] => Thanks for the ping.
    )
    

    Generally, if you don’t know which method you call, you can also try XML-RPC Introspection – but not all XML-RPC servers offer that.


    You asked in a comment:

    According to specs, $targetURI should be: “The target of the link on the source site. This SHOULD be a pingback-enabled page”. How can I make pingback enabled page, or more important, what is that actually?

    A pingback enabled site is a website that announces an XML-RPC pinbback service as well. That’s done with the HTMl <link> element in the <head> section. Example:

    <link rel="pingback" href="http://hakre.wordpress.com/xmlrpc.php" />
    

    The href points to an XML-RPC endpoint that has the pingback.ping method available.

    Or it’s done by sending a specifc HTTP response header:

    X-Pingback: http://charlie.example.com/pingback/xmlrpc
    

    See pingback-enabled resource.

    So if you ping others, others should be able to ping you, too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to ping Google when my web site's sitemap is updated but I
trying to ping a domain and see if i get a response code to
im trying to ping a list of domains to get initial indications if they
I am trying to get the unreachable condition of the ping host as I
I am trying to grep the response time from a ping request in php.
On our web application I am trying to ping a 3rd party site to
I'm trying to determine the best way to ping a database via JDBC. By
I have been trying to write a bare-bones ping scanner using Perl for internal
Trying to get my css / C# functions to look like this: body {
Having and issue with an ejabberd cluster. While trying ping the first node from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.