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 — Capture l'écran complet
Description
resource imagegrabscreen
( void
)
Effectue une capture de la totalité de l'écran.
Valeurs de retour
Retourne une ressource image en cas de succès, ou FALSE si une erreur survient.
Exemples
Exemple #1 Exemple avec imagegrabscreen()
Cet exemple montre comment effectuer une capture d'écran et la sauvegarder dans une image png.
<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
?>
Notes
Note: Cette fonction n'est disponible que sous Windows.
imagegrabscreen
andrew at local dot co dot nz
19-Apr-2008 01:02
19-Apr-2008 01:02
