title: Get the Title of all posts
body: <p>Im using Wordpress, Im also creating posts via XMLRPC based on an RSS feed that is added to periodically.</p>
  
  <p>What I want is to read all post titles, compare those against the RSS feed, then only post to Wordpress where the post titles dont exist.</p>
  
  <p>I'm trying this code:</p>
  
  <pre><code>&lt;?php
  define('WP_USE_THEMES', false);
  require('../wp-load.php');
  query_posts('showposts=-1&amp;author=1&amp;post_status=publish');
  ?&gt;
  
  &lt;?php while (have_posts()): the_post(); ?&gt;
  
  &lt;?php the_title(); ?&gt;
  
  &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>This gets all titles from <code>published</code> posts, I then need to do the same to get the <code>draft</code> posts.</p>
  
  <p>I need to write these title's to an array?</p>