title: How to upload wordpress post thumbnail manually [ wp_database ]
body: <p>I'm trying to create an external php script outside of wordpress to manage posts in a custom backoffice (using Symfony2).</p>
  
  <p>So far everything works fine. I just want to know how to set a post thumbnail manually by uploading a picture and registering its informations directly into Wordpress database, means :</p>
  
  <ul>
  <li>Which upload dir to use</li>
  <li>Which post type</li>
  <li>post status</li>
  <li>The maining of postMime</li>
  <li>Metas to add</li>
  <li>...etc</li>
  </ul>
  
  <p>In general I just want to know how to register a post thumbnail manually without using Wordpress functions.</p>
  
  <p>Any ideas ?</p>
  
  <p>Thank you !</p>