There are many cases when you may want to take a screenshot of a webpage from command line or programmatically from a PHP script or a .NET program.
Depending on your needs, refer to the following posts:
– Linux command line tools to take screenshots
– Windows command line tools to take screenshots
– Taking Screenshots of Websites with PHP
– Taking Screenshots of Websites with .NET Windows Forms