views:

33

answers:

3

Hi!!

I have a dynamic web site (php/mySQL/Ajax on a Linux server), I need to take automatically a photo (snapshot) of each web page periodically (If I can find the way to do the snapshot... I can use cron) and save this image to the database (I also know how to do this...my only problem is the photo!).

I can't do it manually, so I need an script which take the snapshop for me, without displaying the web page, i.e directly from the .php files.

Is it possible??? How??

Thanks!!

       Carolina
A: 

You can use the GD functions imagegrabscreen() or imagegrabwindow() to take a screenshot.

Note that they're only available on Windows at the moment.

Sarfraz
+3  A: 

http://browsershots.org/ may work for you, they have an api

jayrdub
Awesome site! +1
Paul Creasey
A: 

Thanks Jayrdub! I'll see the browsershot.com API.

Sarfaz My server has linux... so I can't use the GD functions :-( Thanks!

Carolina