Screen Grab with PHP and/or Javascript?

前端 未结 6 752
礼貌的吻别
礼貌的吻别 2021-01-17 04:16

Just wondering if it\'s possible to screen grab a page you are viewing with a PHP script or javascript? For example, load up a page in an iframe and then save that view as

6条回答
  •  不思量自难忘°
    2021-01-17 04:34

    Nope, sorry, it is impossible with Javascript and definitely impossible with a server-side language like PHP. (Edit: I mean it's impossible to take a screenshot of the user's view of the page.)

    It depends on what you want to do this for, but you might want to find a script or program that runs server-side and renders the webpage there. But if you really want to take the screenshot of the user's view of the page, it's pretty much impossible.

提交回复
热议问题