哪些纯服务器端技术允许在共享主机上捕获 html 网站

发布于 2024-08-20 13:20:18 字数 260 浏览 1 评论 0原文

据我所知,只有PHP不能用于此目的。

但由于没有多少提供商允许在共享上安装 Perl/Python/... 脚本,我想知道是否有免费的解决方案可以

动态/按需创建缩略图或全尺寸捕获并将其保存到服务器(因为快照只允许您在悬停时显示缩略图) - 服务

Flex/Flash 解决方案来捕获网站和 PHP 来保存它(或使用 flex/flash 保存它) - 要运行的代码在服务器上

可能吗?

As far as I know, only PHP can't be used for this.

But since not many providers allow installation of Perl/Python/... scripts on shared, I'm wondering whether there is free solution for either

creation of thumbnails or full-size capturing on the fly / on demand and save it to server (since snapshot lets you only to show thumbnails on hover) - service

or

Flex/Flash solution to capture website and PHP to save it (or save it right with flex/flash) - code to run on server

Is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舟遥客 2024-08-27 13:20:18

要捕捉网站的外观,您首先需要有人来渲染它。

因为您通常要优化网站以在主要浏览器上运行,所以您将需要其中一个来处理渲染。

这(打开浏览器实例,打开某个网页,渲染它并转储结果的屏幕截图)是可能的 - 这就是 browsershots.org 工作。

设置起来并不简单,并且需要完全自由地设置服务器(即安装程序、设置权限等的管理员权限)。在受限的共享托管环境中,使用纯 PHP、Perl、Python 或任何其他脚本语言绝对是不可能的。

如果您使用的是 Windows,则这个的答案问题可能会有所帮助。

有关快照服务的列表,请参阅这个问题

To capture how a website looks like, you first need somebody to render it.

Because you are usually optimizing a web site to run on the major browsers, you will want one of them to handle the rendering.

This (opening a browser instance, opening a certain web page, rendering it and dumping a screen shot of the results) is possible - it's how services like browsershots.org work.

It's just not trivial to set up, and requires total freedom in setting up the server (i.e. administrator privileges to install programs, set rights, etc.). It definitely is not possible to do with pure PHP, Perl, Python, or any other scripting language, on a restricted shared hosting environment.

If you're on Windows, the answer to this question may be of help.

For a list of snap shot services, see this question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文