Jeg har denne koden:
$url = 'http://t.co/t5Am9bNQjz';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_exec($curl);
$lastUrl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
$redirects = curl_getinfo($curl...