How do I write a Parsing script for an XML PPC Feed?

Discussion in 'XML & RSS' started by LiftBigEatBig, May 17, 2010.

  1. #1
    Trying to add PPC ads to a search results page. They gave me the xml feed location and the variables, but I have no idea how to parse the feed and then display them nicely in html.

    The xml feed looks like this:

    http://ppcfeed.com/xmlfeed.php?aid={aid}&said={subid}&ip={ip}&q={q}&ref={ref}&ua={ua}&n={n}&al={al}&http-ref={http-ref}

    {aid} your id
    {subid} your subid, any string
    {ip} user ip, REMOTE_ADDR http variable
    {q} query, keyword for request
    {ref} feed address, http:// + SERVER_NAME http variable
    {ua} user agent, USER_AGENT http variable
    {n} results count
    {al} accept language, ACCEPT_LANGUAGE http variable
    {http-ref} referer, HTTP_REFERER http variable

    Any tips on how to go about parsing and displaying this??

    Any help is greatly appreciated!! Thanks in advance!!!
     
    LiftBigEatBig, May 17, 2010 IP