PHP - Capture screenshot of website from URL example

Admin   PHP   34  2020-08-12 19:21:26

Today, i am going to give you example of how to grab screen shot from given URL using PHP curl. There are several website provide API for capture website screenshot image using their API Secret and Key.

In this example i am using website API. This website provide very simple way to user their API. If you haven't account on then you must create new account and get

Account Key. So you have to just copy that key.

I also use variable "$accountKey", you have to just assign that key on that variable. It is very simple example and using only simple file.

Make sure you have images folder in your root path with full permission. All images will download and store on that table.