Is this possible to take screenshots of windows's screen of client users using a PHP
application?
Asked
Active
Viewed 66 times
-4

iamsankalp89
- 4,607
- 2
- 15
- 36

Dharma
- 1
- 5
-
The PHP script runs on the server. It completes before the page is displayed in the browser; the browser runs on a different computer. – axiac Sep 01 '17 at 09:16
1 Answers
1
If you want to capture the current client web page, you should look into JS solutions (see this related SO answer):
- html2canvas
- npm packages with keyword ‘screenshot’
You may also be able to programatically load and render HTML with a GET request, though you will still need to run JavaScript to render the full web page on the server side.
If you mean a screenshot of the actual desktop, I fear only the browser would be able to do it and this is still at an experimental stage, probably due to security concerns:
- Chrome desktopCapture extension
- MDN Media Capture and Streams API
- Can I use
media capture
?
Edit: Possible duplicate of this question. Some back-end libraries to render a web page:
- dompdf (PHP5)
- wkhtmltopdf (C++)

LEI
- 316
- 3
- 14