Web Page Screenshots with PHP?

后端 未结 6 860
谎友^
谎友^ 2020-12-20 22:14

I know there is not a direct way to take a screen shot of a web page with PHP. What would be the most straightforward way to accomplish this? Are there any command line tool

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-20 23:04

    You can use the GD functions imagegrabscreen() or imagegrabwindow() to take a screenshot, but they're only available on Windows at the moment.

提交回复
热议问题