0

I'm trying to get a screenshot of my visitors!

Normally its working with imagegrabscreen but I got a Linux Server.

<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
imagedestroy($im);
?>

I get this error: Fatal error: Call to undefined function imagegrabscreen() in /var/www/index.php on line 2

How can I fixed that on Linux?
Or is there a other possible way to do that?

toydarian
  • 4,246
  • 5
  • 23
  • 35
teckfolls
  • 37
  • 6
  • From [the documentation](http://php.net/manual/en/function.imagegrabscreen.php), this function is Windows-specific. In terms of other options, have you seen [this question](http://stackoverflow.com/questions/713938/how-can-i-generate-a-screenshot-of-a-webpage-using-a-server-side-script)? – Ironcache Nov 28 '16 at 15:11
  • @Ironcache yes, but he want a screenshot of websites... – teckfolls Nov 28 '16 at 15:13
  • What do you want? – Ironcache Nov 28 '16 at 15:26

1 Answers1

0

imagegrabscreen() is not working on LINUX.
It can only be used on Windows.

toydarian
  • 4,246
  • 5
  • 23
  • 35