Home / Freelancing / PHP – Capture screenshot of website from URL

PHP – Capture screenshot of website from URL

Lets see 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.

Here we are using screenshotmachine.com website API. Screenshotmachine.com provide very simple way to user their API. If you haven’t account on screenshotmachine.com 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.  So I have create structure like this:

webshot/images/

webshot/index.php

Demo: https://www.screenshotmachine.com/index.php

 

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

Subdomain and Mandomain

Create Dynamic Subdomains using PHP and Htaccess

Dynamic subdomains like Google Blogger and Tumblr.com, I know the vast majority of the general …

frameworks-banner

How to make your own PHP framework?

Building your own framework can be useful for the following reasons: You can learn a …

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH