I use file_get_contents
to get the content of a webpage,
$urlContent = file_get_contents('http://some.tld');
this webpage redirects to another page.
<meta http-equiv="refresh" content="0;url=http://some.tld/123">
What I need is the URL it is directing to. Here it would be http://some.tld/123
It seems file_get_contents
is waiting to be redirected and gets the content of the new site.