title: Getting title and meta tags from external website
body: <p>I want to try figure out how to get the</p>
  
  <pre><code>&lt;title&gt;A common title&lt;/title&gt;
  &lt;meta name="keywords" content="Keywords blabla" /&gt;
  &lt;meta name="description" content="This is the description" /&gt;
  </code></pre>
  
  <p>Even though if it's arranged in any order, I've heard of the PHP Simple HTML DOM Parser but I don't really want to use it. Is it possible for a solution except using the PHP Simple HTML DOM Parser. </p>
  
  <p><code>preg_match</code> will not be able to do it if it's invalid HTML?</p>
  
  <p>Can cURL do something like this with preg_match?</p>
  
  <p>Facebook does something like this but it's properly used by using:</p>
  
  <pre><code>&lt;meta property="og:description" content="Description blabla" /&gt;
  </code></pre>
  
  <p>I want something like this so that it is possible when someone posts a link, it should retrieve the title and the meta tags. If there are no meta tags, then it it ignored or the user can set it themselves (but I'll do that later on myself).</p>