Page 1 of 1
Capturing web sites!
Posted: Fri Jun 20, 2003 7:49 pm
by farsinuke
Some search engines capture the first (and some) page as screen shot.
For instance you could take a look at here
http://search.msn.com/preview.aspx?&q=devnetwork
I'd like to know how could I write a script w/ PHP to capture web pages as a picture?
Thanks for your help

Posted: Fri Jun 20, 2003 10:01 pm
by nielsene
I don't have a complete answer, but here's some places to look.
First use google to search for "screen scraping", typically speaking the search hits will describe text only captures, not graphics/screen shots, but somewhere there might be a good link or two. Also search for "window capture".
Second. I can think of a possible automated approach being something like
1) use system/exec calls to launch a browser passing in the target site
2) use system/exec to launch the window capture program, pasing in a reference to the newly spawned broswer, with the output of the capture saved to a specified file
There's lots of holes to fill-in, but this should get you started....
Posted: Sat Jun 21, 2003 5:34 am
by twigletmac
Topic moved to PHP - Normal. Please read forum descriptions before posting.
Mac
Posted: Sat Jun 21, 2003 6:19 am
by volka