Im trying to add a new feature to my site but I cant seem to get it right.
Here is my current code.
It cURLS a link that redirects from my site to the end site. It is for tracking my affiliates.Code:// create a new curl resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "$nl2"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION); $curl = curl_exec($ch);
What I want is to recive the end link which I thought the above code but isted it ouputs this:
And hear is the URL i want......Code:The URL has moved here
Any ideas? Thanks!