<!-- Help in Danish -->
For at dette kan virke, skal Apache-servicen være indstillet til 'Tillad tjeneste til at interagere med Skrivebord"ellers vil du blot få et blank billede. For at rette dette, skal du højreklikke på "Denne computer", vælge "Administrer" og "Tjenester og Programmer" - Derefter skal du finde "Tjenester, og så bliver det svært.
På den lange liste som kommer frem skal du finde Apache-tjenesten (gerne "Apache2") og højre-klik, vælg "Egenskaber" til sidst skal du vælge "Log" på fanen og tjek 'Tillad tjeneste til at interagere med skrivebord' med et flueben. Genstart Apache og test .
-----------------
Orginal text:
For this to work your Apache service must be set to 'Allow service to interact with desktop' otherwise you will just get a blank image. To fix this right-click My Computer, select Manage/Services and Applications/Services - find the apache service (like Apache2) and right-click, select Properties - choose the Log on tab and check the 'Allow service to interact with desktop' checkbox. Restart Apache.
imagegrabscreen
(PHP 5 >= 5.2.2)
imagegrabscreen — Captures the whole screen
说明
resource imagegrabscreen
( void
)
Grabs a screenshot of the whole screen.
返回值
Returns an image resource identifier on success, FALSE on failure.
范例
Example#1 imagegrabscreen() example
This example demonstrates how to take a screenshot of the current screen and save it as a png image.
<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
?>
注释
Note: This function is only available on Windows.
imagegrabscreen
jens at stigaard dot info
18-Jun-2008 02:43
18-Jun-2008 02:43
andrew at local dot co dot nz
19-Apr-2008 07:02
19-Apr-2008 07:02
For this to work your Apache service must be set to 'Allow service to interact with desktop' otherwise you will just get a blank image. To fix this right-click My Computer, select Manage/Services and Applications/Services - find the apache service (like Apache2) and right-click, select Properties - choose the Log on tab and check the 'Allow service to interact with desktop' checkbox. Restart Apache.
