I want to get a screenshot of a website stored in a variable as a PNG/JPG file with any random name. I know there's a function in windows server but is there anything on a linux server?
Moreover, I just want the screenshot, at any cost. So is there any other and simplest way round to get a screenshot of a site.
Please note: My file would be .php so it should be something compatible.
Maybe I can get something like:
<img src='/screenshots/script.asp?url=google.com' />
Thank you!