|
One would have to open up a HTTP connection to the URL, and then get the value of the redirect. PHP has some HTTP handling functions, and it's sometimes compiled with CURL, which might be easier. I suspect it would just be a case of parsing out the right header, or having a library follow the link and see where it goes.
|