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.

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

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)