You will need to make a page with something. If you really want to use php, I suggest you have HTMLTOPS , which displays the page and outputs it to a ps (ghostscript) file, then convert it to .jpg, .png, .pdf .. maybe a little slower with complex pages (and not supports all CSS).
Otherwise, you can use wkhtmltopdf to display the html page in pdf, jpg, whaterver format. Accept CSS2.0, use webkit (safari wrapper) to display the page .. so that should be fine. You must also install it on your server.
Source: Website Screenshots Using PHP
Aaron Harun Jul 04 '10 at 16:39 2010-07-04 16:39
source share