将网页保存到服务器文件夹 [英] Save webpage to server folder

查看:314
本文介绍了将网页保存到服务器文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以将外部网页保存到服务器上的文件夹,但所有网页元素(JS文件,图像,CSS等)。像你可以在浏览器使用选项保存完成页面,但我需要这个保存与我的服务器文件夹上的PHP。并且当包括此文件夹时将页面显示为原始。也许与curl或一些php函数...?



如何操作。请帮助!



psI这样做是为了好的原因,不是为了窃取内容!




解决方案

您是否想访问一个php网站作为客户端浏览器或通过wget / curl / etc)然后保存所有相关的服务器端文件?



不能访问服务器,强>。服务器端内容(例如PHP页面和网站的某些其他部分)是解释由服务器在您作为客户端之前查看网站的任何部分。您需要服务器端访问文件才能看到代码解释之前的内容。


Is there any way to save a external web page to folder on server but with all webpage elements (JS files,images,css... etc.). Like you can do at browser with option save-complete-page but I need this to save with php on my server folder. And when include this folder to show the page as original. Maybe with curl or some php function ... ???

HOW TO DO THAT. please HELP!

p.s.I doing this for good reason not for stealing content!

and when I finising with operation and function I will empty the folder.

解决方案

Are you saying that you want to visit a php site as a client (whether in a browser or via wget/curl/etc) and then save all related server-side files?

Without access to the server, that is not possible. The server-side content (e.g. the PHP pages and possibly some other parts of the site) are interpretted by the server before you as a client see any part of the site. You need server-side access to the files in order to see what is there before the code is interpretted.

这篇关于将网页保存到服务器文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆