title: Get Tumblr post title using API & PHP?
body: <p>Using <a href="http://finlay.tumblr.com/post/529010691/embed-tumblr-into-your-website" rel="nofollow">this</a> post and the <a href="http://www.tumblr.com/docs/en/api#api_read" rel="nofollow">Tumblr API</a>, I'm trying to embed the title of whatever the latest blog entry is on my website.</p>
  
  <p>For some reason, I thought this would be a nice simple code, but it returns empty. Have I missed something obvious?</p>
  
  <pre><code>// Contents of includes/latest_blog.php
  &lt;?php
    $request_url = 'http://###NAME###.tumblr.com/api/read?start=0&amp;num=1';
    $xml = simplexml_load_file($request_url);
    $title = $xml-&gt;posts-&gt;post-&gt;{‘regular-title’};
    $link = $xml-&gt;posts-&gt;post[‘url’];
    echo 'Latest blog entry: &lt;a href="'.$link.'"&gt;'.$title.'&lt;/a&gt;';
  ?&gt;
  </code></pre>
  
  <p>The website:</p>
  
  <pre><code>&lt;p class="blog_title"&gt;&lt;?php include('includes/latest_blog.php'); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Thanks!</p>