PHP:如何捕获的浏览器窗口的屏幕使用PHP? [英] PHP: How to capture browser window screen with php?

查看:115
本文介绍了PHP:如何捕获的浏览器窗口的屏幕使用PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不知道,如果是可以捕捉到浏览器窗口的屏幕使用PHP,然后
怎么办呢?

First of all, i am not sure, if it is possible to capture browser window screen with php, then how to do it?

如果可能的话,最好将捕捉到刚刚网站内容不包括浏览器部件,如菜单栏,工具栏,状态栏等

If it is possible, the best will be to capture just the website content excluding browser parts such as menubar, toolbar, statusbar, etc.

感谢

推荐答案

imagegrabscreen () imagegrabwindow() ,这将允许您以编程方式从通过COM在同一台机器上运行(仅胜虽然)浏览器中创建截图。请参阅如何忽略浏览器的Chrome手册中的注释。随着 DCOM 启用,这也将与已设置允许通过DCOM远程访问Windows机器工作。

There is imagegrabscreen() and imagegrabwindow(), which would allow you to programmatically create screenshots from a browser running on the same machine via COM (Win only though). See the comments in the manual for how to omit the browser's chrome. With DCOM enabled, this would also work with remote windows machines that have been setup to allow access through DCOM.

在对那些说PHP不知道浏览器的一个旁注,我建议看看的 get_browser() PHP手册。这不是很多,但嘿,这不是什么。

On a sidenote for those that said PHP does not know about the browser, I'd suggest a look at get_browser() in the PHP manual. It's not much, but hey, it's not nothing.

这篇关于PHP:如何捕获的浏览器窗口的屏幕使用PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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