Screen Capture

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
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Screen Capture

Post by cesarcesar »

i want to do a screen capture/scrape of a page, resulting in a JPG or PNG that i could save in a dir of my choice. This capture needs to take place a few seconds after the page loads, to allow all JavaScript and Flash elements on page to load.

It would be great if i could also/just target a specific JS or Flash element to grab, instead of the whole page. There has to be some great PHP solutions for this.

Thanks, Cesar
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I seriously doubt there are PHP client emulators that render Flash. Even Javascript is unlikely.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

May be imagegrabscreen and imagegrabwindow functions could be of help from PHP-GD library
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Post by cesarcesar »

dude81 wrote:May be imagegrabscreen and imagegrabwindow functions could be of help from PHP-GD library
I have looked into both, but one is windows only and the other is not working for me.

there has to be some type of server-side scripts and modules that can render a page server-side.

sitevista.com does it... why cant I?

i have to be able to load a page in the background. possibly load it into cache first. HTML to PDF conversion scripts do it... sorta somewhat.

thanks for the replys
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

cesarcesar wrote:sitevista.com does it... why cant I?
Could it be because they're better at development than you?

Looking at their site I imagine they've created a system that automates browser interaction. Pretty cool, but a lot of work. Certainly not something you'd be able to do with PHP.
Post Reply