php--抓屏

php--抓屏

<?php
//截图的设置

//路径的设置
$path = "F:/xampp/htdocs/www/test/capt/";
//文件名的设置
$filename = date('Y-m-d-H-i-s',$_SERVER['REQUEST_TIME']).'.png';
//时间延迟的设置
$delay = 10000;

$fullpath = $path.$filename;

//截屏的地址设置
$arr = array(
'http://y.qq.com/',
'http://zy.youku.com/xiaoshuo',
'http://www.leapsoul.cn/?p=646',
'http://luckylife.sinaapp.com/?tag=iecapt');
foreach($arr as $k=>$v){
	sleep(10);
	system("F:/xampp/htdocs/www/test/capt/CutyCapt.exe --url={$v} --out={$fullpath} --delay={$delay}");
}

?>

http://www.oschina.net/p/cutycapt

软件下载地址

你可能感兴趣的:(php--抓屏)