+ -
当前位置:首页 → 问答吧 → PHP实现网站截图的好方法

PHP实现网站截图的好方法

时间:2010-07-26

来源:互联网

有个应用需要
根据查找资料
有两张方法
Linux+QT

Windows+IE+COM

$ie = new COM("InternetExplorer.Application") or die("Can't start Internet Explorer");
try {
$handle = $ie->HWND;
$ie->Visible = true;
$ie->Navigate("http://www.php.net");
while ($ie->Busy) {
com_message_pump(4000);
}
} catch (com_exception $e) {
echo $e;
}
$im = imagegrabwindow($handle, 0);
imagepng($im, "gd_window.png");
$ie->Quit();
?>

不知道有什么其它方法吗?
我的是Linux平台不想装QT

作者: fei   发布时间: 2010-07-26

http://www.cloudtesting.com/blog ... oud-testing-part-1/

selenium 是个界面测试工具~不过也可以截图。

作者: 绿霸花季护航   发布时间: 2010-07-26