Jump to content

Recommended Posts

Ok, this might be expecting the impossible but i'll ask anyway!!!

 

Is there anyway that php can grab a screenshot of a web page, save the image, and bring the image back to the main website?

 

This is what I want it to do:

1. The user enters the url in a form.

2. My website should take the url and retrieve the screenshot of the url web page.

3. This screenshot should appear to the user after the form is submitted.

 

Any ideas? Been looking around a lot for some solution...someone help please...

 

Link to comment
https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/
Share on other sites

its possible i think on a windows server if you use a exec() to start up IE with the url as a flag then you have to send ascii commands to screen shot it store it and that is it, the question is how i've never used the exec() before but have at it:

http://us2.php.net/manual/en/function.exec.php

frost you could do it, but it be a big leap of code to get a screen shot like off of IE, but the issue might be that your server likes a GPU or any sort of graphical interface (especially if UNIX) which would mean you can't really do that with out like you said a third party to return you the image.  But i can be done in php if your server has that design function to it

frost you could do it, but it be a big leap of code to get a screen shot like off of IE, but the issue might be that your server likes a GPU or any sort of graphical interface (especially if UNIX) which would mean you can't really do that with out like you said a third party to return you the image.  But i can be done in php if your server has that design function to it

 

What I am getting at is there are no extensions in PHP for it. You have to have a GUI to do it, whether its a linux GUI or windows. And in order to do it you have to access software outside of PHP realm, Whether it is using exec() like you mentioned or system to run an application for the screen shot.

 

Basically right now PHP, alone, cannot do it. There has to be a 3rd party software application involved.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.