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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.