title: Get destination URL of a link from edealinfo.co.uk in PHP
body: <p>The URL that I'm working with is: <a href="http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3" rel="nofollow">http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3</a></p>
  
  <p>I already tried:</p>
  
  <pre><code>    $ch = curl_init("http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3");   
      curl_setopt($ch, CURLOPT_NOBODY, true);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_exec($ch);
      print_r($data = curl_getinfo($ch));
      echo $data["url"];
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>print_r(get_headers("http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3"));
  </code></pre>
  
  <p>Without any luck. Anyone has a solution?</p>