-1

Possible Duplicate:
Take a screenshot of a webpage with javascript?
Website screenshots using PHP

I need get a screenshot image by php without have to do manually. In this php I would like write a screen parameters to customize my screenshot image.

Community
  • 1
  • 1
Christian
  • 53
  • 1
  • 8

3 Answers3

1

You'll need something to render the page: PhantomJS, for example. For pure PHP, you'll have to use a service like Browshot which offer an API to request screenshots with PHP.

Julien
  • 5,729
  • 4
  • 37
  • 60
0

PHP is a server side language, so making a screen shot off your client machine needs an other technology.

Look at the GD library of PHP to invest the possibilities of image and PHP

stUrb
  • 6,612
  • 8
  • 43
  • 71
0

If you can call a binary from your PHP script you can use WkHTML. It handle both PDF and image conversion pretty well. I am using it to render fragments (like tables) but it works with a whole page. It can even wait for AJAX loads and other Javascript sturr. http://code.google.com/p/wkhtmltopdf/ is the link.

Guillaume Poussel
  • 9,572
  • 2
  • 33
  • 42