Re: PHP Script for converting an HTML URL to image
Doing it yourself isn't worth the bother -- there are web services you can use like Thumboo! and WebThumb. They usually offer a REST API and provide drop-in PHP code for your page. That saves you the bother of finding or creating a web browser that's implemented in PHP or monkeying with font metrics in the PHP image processor or ImageMajik.
For other alternatives, search for "PHP website thumbnail API" (without the quotes).
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)