Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP - can't get xml back from Flickr REST API

Options
  • 09-12-2009 11:59pm
    #1
    Registered Users Posts: 339 ✭✭


    Hi,

    I am trying to make a photo gallery with the images loaded from my flickr account.

    I'm using the 'HTTP_Request' pear package in PHP.
    I make a request to the flickr api and store the response in a variable then I use SimpleXML to parse the xml.

    The problem is I'm not getting the xml back.

    If i replace the flickr url with say google's url and 'echo' the response, I see the google page.
    I've included a screengrab of the HTTP Headers section of the phpinfo.php file.
    Could the response section be what's stopping me from getting xml?
    Or am I missing something else completely.

    The website is hosted on a shared hosting server.

    Any thoughts/advice appreciated.

    98526.PNG
    Tagged:


Advertisement