Enable imagegrabscreen()

Status
Not open for further replies.

benjamin35

New Member
Messages
2
Reaction score
0
Points
1
Hello,

i wanted to use the PHP5-function imagegrabscreen, but it just gave me the following error message:
Fatal error: Call to undefined function imagegrabscreen() in /public_html/screeny/screeny.php on line 5

Is there a way of enabling it?

Thank you
 
Last edited by a moderator:

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
The function imagegrabscreen() works only on Windows (the servers here are Linux/CentOS) and only on the local machine (not on a remote server). That is, it will grab the screen image (the equivalent of doing ALT + PrtSc) of the machine the code is running on and put the result into a variable of type Image.
 
Status
Not open for further replies.
Top