wee493 Posted September 15, 2012 Share Posted September 15, 2012 I'm wanting to download and entire clone of a webpage using php. Save the page, js, css, and images. If I use fopen() or file_get_contents() it only saves the main page and not the linked assets. Is there another method to doing this? Link to comment https://forums.phpfreaks.com/topic/268404-wanting-to-download-entire-webpage/ Share on other sites More sharing options...
trq Posted September 15, 2012 Share Posted September 15, 2012 You would need to write a script which looked through the html and recursively downloaded all assets as well. Link to comment https://forums.phpfreaks.com/topic/268404-wanting-to-download-entire-webpage/#findComment-1378091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.