sastro Posted April 21, 2009 Share Posted April 21, 2009 When using file_get_contents($url), it's only get the html of the url, how to get the html including all files (.css, .js, .jgp etc) on it like wget. Thanks Link to comment https://forums.phpfreaks.com/topic/154994-how-to-get-full-url-html-and-files/ Share on other sites More sharing options...
Yesideez Posted April 21, 2009 Share Posted April 21, 2009 I think you'd have to parse the resultant HTML scanning for everything and reading the files in one by one although there are packages out there to do this (site downloader) so why try and re-invent the wheel? Link to comment https://forums.phpfreaks.com/topic/154994-how-to-get-full-url-html-and-files/#findComment-815269 Share on other sites More sharing options...
sastro Posted April 21, 2009 Author Share Posted April 21, 2009 Yupe, i think so, but i just choose to use exec('wget($url)');. Thx anyway... Link to comment https://forums.phpfreaks.com/topic/154994-how-to-get-full-url-html-and-files/#findComment-815289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.