Is it possible to "screenshot" a web page?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
captcadaver
Forum Newbie
Posts: 17
Joined: Fri Jul 17, 2009 11:12 pm

Is it possible to "screenshot" a web page?

Post by captcadaver »

Is this possible? How would you go about doing this? (EDIT: I meant, how can you code this into a web app?)

EDIT: I just removed something that was obviously possible. :P

Thanks!
Last edited by captcadaver on Thu Jul 30, 2009 9:30 pm, edited 2 times in total.
phphat
Forum Newbie
Posts: 14
Joined: Sun Jul 26, 2009 5:25 pm

Re: Is it possible to "screenshot" a web page?

Post by phphat »

You would have to press the Print Screen button which is sometimes abbreviated on the keyboard as "PrntScn".
captcadaver
Forum Newbie
Posts: 17
Joined: Fri Jul 17, 2009 11:12 pm

Re: Is it possible to "screenshot" a web page?

Post by captcadaver »

Haha sorry, I didn't explain at all.

I meant, is it possible to code a print screen function for a web page? For example, you would give a URL and you'd get an image of it back.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Is it possible to "screenshot" a web page?

Post by jackpf »

I tried this once - unsuccessfully. I can't remember where I found the tutorial...I think it is possible though. But only on windows.

You basically have to use a COM object to open internet explorer and take a screenshot. I think that's how anyway...

Sorry I can't be more helpful ^^
User avatar
diptanjan
Forum Newbie
Posts: 1
Joined: Fri Jul 31, 2009 2:06 am
Contact:

Re: Is it possible to "screenshot" a web page?

Post by diptanjan »

Hi,

Definitely this is possible. Couple of years back we did something like this but I remember we used some third party tool, which used to generate thumbnail image of homepage of the site url provided. I am not sure if this can be achieved through Php alone.. I think no.

Regards

Diptanjan
Post Reply