Save Content From An Iframe To A File?Aug 6, 2007
We use the services of an external company in our website. We load this content in via an iframe. Some of this content happens to be an image.
This image is only stored on the external company's site for a limited time. We need this image to be stored on our servers somehow. Because the content is loaded dynamically from another site it's a little more difficult to access via a server side script
I'm thinking it would go something like:
load in the html for the iframe into a variable,
(no idea how yet, I don't think 'include' works like that)
then scan through the file for the link to the image,
then request that url from them and save it as a file somewhere.
I can't think how i can do this easily with php nor ajax... any ideas?
This should work:
...but I'm thinking there might be a better way of doing it.