kvishnu_13 Posted July 10, 2007 Share Posted July 10, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/ Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/#findComment-294711 Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 Not possible without 3rd party software. http://www.snap.com/ Another forum goes in detail on the topic http://forums.digitalpoint.com/showthread.php?t=101760 Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/#findComment-294714 Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/#findComment-294723 Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/#findComment-294728 Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 yes you are right php alone can't but it can be done with a php server Quote Link to comment https://forums.phpfreaks.com/topic/59326-grabbing-the-screenshot-of-a-webpage/#findComment-294752 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.