PHP Classes

Screenshot: Take screenshots of pages with Internet Explorer

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-06-13 (8 years ago) RSS 2.0 feedStarStarStar 45%Total: 5,630 All time: 406 This week: 942Down
Version License PHP version Categories
win-screenshot 0.1GNU General Publi...5.2.2PHP 5, Graphics, Windows
Description Author

This class can be used to take screenshots of Web site pages using Internet Explorer.

It can command an instance of the Internet Explorer running on the same Windows machine to make it open a given Web page.

Several aspects of Internet Explorer can be controlled like whether its window will be visible and resizable, show the status, address bars and tool bars, and make the browser occupy the full screen.

The class can grab an image the whole desktop screen or just the Internet Explorer window.

The grabbed image can be saved to a given file in the PNG format (or GIF/JPEG if required).

Innovation Award
PHP Programming Innovation award winner
June 2008

Prize: One copy of the Zend Studio
Some Web applications publish content that references other sites. In that case it is often useful to show a screenshot of such site pages.

This class provides a solution that can take a screenshot of any remote Web site page.

It starts an instance of the Internet Explorer browser and controls it in such way that it displays the page of the desired site. Then it uses a special PHP GD extension function to capture the image of the site page.

Despite it only works with PHP running on Windows, this is a very useful solution that addresses a frequently requested need of many PHP sites.

Manuel Lemos
Picture of Daniel Neville
Name: Daniel Neville is available for providing paid consulting. Contact Daniel Neville .
Classes: 2 packages by
Country: United Kingdom United Kingdom
Age: 24
All time rank: 39417 in United Kingdom United Kingdom
Week rank: 1504 Down62 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  • screens/exampleoutput1.png
  • screens/code.png
  Files folder image Files  
File Role Description
Files folder imageexamples (2 files)
Plain text file screenshot.class.php Class This holds the actual PHP class
Plain text file manipulation.class.php Class Use this class if you want to have the manipulation features too.

  Files folder image Files  /  examples  
File Role Description
  Plain text file 1.php Example Example usage
  Plain text file 2.php Example Another example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:406
This week:942Down
User Ratings User Comments (2)
 All time
Tests I have done dos'nt work .
5 years ago (Richetin)
Very good idea .
8 years ago (koko)