<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 20:19:26 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Taking screenshots of websites in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16479</guid>
      <link>http://www.phpdeveloper.org/news/16479</link>
      <description><![CDATA[<p>
In a new post <i>Sameer Borate</i> shows you how to <a href="http://www.codediesel.com/php/taking-screenshots-of-websites-in-php/">take screenshots of websites</a> with PHP (and a little help from the <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltoimage</a> tool).
</p>
<blockquote>
aking screenshos of websites is not a frequent requirement for developers but can come handy on many occasions. Although there are some nice solutions on the web, a particular one I found very good is <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltoimage</a>. wkhtmltoimage is a simple shell utility which can be used to convert html to images using the <a href="http://www.webkit.org/">webkit</a> rendering engine, and <a href="http://qt.nokia.com/">qt</a>.
</blockquote>
<p>
He includes some brief instructions of how to get the tool installed and how to run it (via the command line first) to grab a screenshot of the bbc.com site. To use it in PHP, he suggests either using it in a <a href="http://php.net/shell_exec">shell_exec</a> type of function or by using the <a href="https://github.com/knplabs/snappy">snappy</a> wrapper that handles some of the interfacing with wkhtmltoimage for you.
</p>]]></description>
      <pubDate>Thu, 16 Jun 2011 11:14:41 -0500</pubDate>
    </item>
  </channel>
</rss>
