title: How to get the real URL after file_get_contents if redirection happens?
body: <p>I'm using <code>file_get_contents()</code> to grab content from a site, and amazingly it works even if the URL I pass as argument redirects to another URL.</p>
  
  <p>The problem is I need to know the new URL, is there a way to do that?</p>