I'm trying to capture a local web page with imagegrabscreen but I only get a black screenshot. I tried almost every solution from questions here on SO and others sites and nothing works.
I'm using and done the following:
- Windows 7 64bit
- Wamp 2.2a 64bit
- PHP 5.3.8
- gd2 (version: "bundled 2.0.34 compatible") is installed and enabled.
- Allowed the apache service to interact with the desktop.
- I don't have a secondary display or anything.
<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
imagedestroy($im);
?>
And all I get is a black image 1024x768 png.