duanqu9292 2011-12-14 17:13
浏览 256
已采纳

使用css,图像和JS文件下载整个网页的Curl或file_get_contents

What I'm need is to get source code of some webpage URL:

$url = 'http://www.kupime.com/';

$data = file_get_contents($url);

after that string I need to save as HTML file in my server folder and after that I need to save other elements od pages (images,css and JS files) and also put on server folder...

After that all, I need to show this page as on my domain to looks like iframe but with source code which I need for other actions.

HOW TO DO THAT! with php file_get_contents or with some cUrl functions or ... suggest you!

  • 写回答

1条回答 默认 最新

  • dqotv26286 2011-12-14 18:06
    关注

    You need to parse all web site urls, src= href= etc etc etc. it's really hard to do that. Try out hidemyass.com , and look that not any web site will work correctly because of js. The script you are looking for is called WebProxy.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?