PHP Variables and Redirects...
http://api.twitter.com/1/users/profile_image/USERNAME
That will redirect to the actual image url, something like:
http://a1.twimg.com/profile_images/6...-bw_normal.png
What I need to do is somehow give my script the first url (http://api.twitter.com/1/users/profile_image/USERNAME) and then return and save the redirected url to a variable.
Like $firstimage = http://a1.twimg.com/profile_images/6...-bw_normal.png
and then I need to somehow get $realimage = http://a1.twimg.com/profile_images/6...-bw_normal.png
How can I tell my script to get the *real* url once I give it $firstimage?
Any suggestions would be much appreciated!
:)
:)