1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Ping RSS Feeds in php

Discussion in 'PHP' started by chickenhouse, Sep 5, 2008.

  1. #1
    Hi all,

    I've set up a valid RSS Feed using a MySQL database and php. Now I want to "ping it out". I don't think the code should be that hard but I can't find out how to do it.

    I want to do something similar to wordpress where you have a list of sites like pingomatic and you somehow ping to those sites everytime your RSS Feed is updated.

    I think the answer might lie in XMLRPC but I don't even know what RPC stands for and I don't know how it relates to php. In what format do I need to send the data? Do the pingomatic sites just accept a set of $POST variables?

    So many questions so few answers. Any help on this would be very much appreciated.

    Thanks,
    Travis
     
    chickenhouse, Sep 5, 2008 IP
  2. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can always use exec or something similar to actually run a ping command. Other than that the closest thing I can think of would be to use get_headers.
     
    Shoro, Sep 5, 2008 IP
  3. chickenhouse

    chickenhouse Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not talking about ping as in the ICMP protocol.

    It's ping as it relates to sending out RSS Feed information.
     
    chickenhouse, Sep 6, 2008 IP
  4. JEET

    JEET Notable Member

    Messages:
    3,825
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #4
    Yes, I think ping sites accept $_GET variables. I have never tried it, but I think I once found a page where they explained how to notify the site about your xml update. something like ping_site.com?feed_url=yourdomain.com or similar.
    Then yo u just need to call that URL like file_get_contents() or using curl.
    See this example for Technorati:
    http://technorati.com/ping/?url=http://www.ad4business.com/feed.php
    regards :)
     
    JEET, Sep 6, 2008 IP
  5. chickenhouse

    chickenhouse Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    chickenhouse, Sep 6, 2008 IP
  6. XXXWebGURUXXX

    XXXWebGURUXXX Banned

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Jeet can u show us Demo of your made script ???
     
    XXXWebGURUXXX, Sep 6, 2008 IP
  7. cgo85

    cgo85 Peon

    Messages:
    380
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    chickenhouse... were you able to get this to work? I've been looking for something just like this. Seems time consuming though so I'm wondering how successful your were with this.
     
    cgo85, Oct 3, 2008 IP