Saving a cached copy of a link
Posted: Wed Apr 25, 2007 2:35 pm
Ok, I have a website where users post some summary information about an article and a link to the actual article. These can then be searched by anyone. Some of the links invariably become dead so I would like to save a copy of them on the server so that if the link is dead a user can click on something like 'View Archived Content' and they can see the original article.
PDF's are no problem. HTML is. I tried using PHP to download the HTML file that the link points to, but then you don't get images. What I'd like to do is something similar to what you do when you save a web page and all the images with it, but I obviously need to do it in PHP.
Any suggestions would be greatly appreciated, thanks!
PDF's are no problem. HTML is. I tried using PHP to download the HTML file that the link points to, but then you don't get images. What I'd like to do is something similar to what you do when you save a web page and all the images with it, but I obviously need to do it in PHP.
Any suggestions would be greatly appreciated, thanks!