Take Webpage Screen Shot by Using PHP
by Subramanian[ Edit ] 2012-11-30 12:44:01
Take Webpage Screen Shot by Using PHP
The Following code is used to take screen shot of webpage.Just you can add this code in which page you need to take screen shot.This code, save the image in given name (eg: screen_name.png) or it will stored in given path...
Code :
$image = imagegrabscreen();//line 1
imagepng($image, "screen_name.png");//line 2
imagedestroy($image);//line 3
?>
The above code is only for png images. If you want jpg or some other , then change line 2 as imagejpeg() or whatever you want.
(Given output image name should be with correct extension part).