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

Discussion in 'PHP' started by LiftBigEatBig, May 17, 2010.

  1. #1
    The xml feed looks like this:

    http://yourdomain.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
  2. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Use Post Function to Post all your Data's and Request function in the function script and assign values for the variables :)
     
    roopajyothi, May 17, 2010 IP