Pulling data from an XML file off of Tumblr

Hello All…

I’m am trying to figure this out, seems simple but just doesn’t seem to be working…

I just need to pull image posts off of an XML file coming from a Tumblr account, in my PHP page, and then style that data using CSS.

When I use the following code to load the XML file in my php page it returns back nothing…
When I show just the XML file in a browser, I can see the XML data… so something is going wrong with my php code…
Can someone please HELP??

[php]

<?php $request_url = "http://alexishoustonmusic.tumblr.com/api/read?start=0&num=1&type=text"; $xml = simplexml_load_file($request_url); $post = $xml->posts->post->{‘regular-body’}; echo '

'.$post.'

'; ?>

[/php]

(I’m just pulling up the latest text post in that XML URL for simplicity sake)

Thank you!

Sponsor our Newsletter | Privacy Policy | Terms of Service