I saw someone ask a question about detecting if a URL redirects from groovy and perl but couldn\'t find anything on PHP.
Anyone know of somewhere I could find that c
Actually, I found this works best:
function GetURL($URL) { $ch = curl_init($URL); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); curl_close($ch); return $code; }