I'm using file_get_contents to copy an image. The problem is the image link is a redirect to the static image url. Is there a way I can use the redirected link and somehow fetch the redirected image url?
I've found that curl would do this but I have 0% experience with this. Any suggestions appreciated.