Possible Duplicate:
How to save webpage as a image file using PHP?
I would like to create an image on the server using a url string that is given. I want a screen shot of a website to be created. Is it possible with PHP GD , if so how ? Thanks
Possible Duplicate:
How to save webpage as a image file using PHP?
I would like to create an image on the server using a url string that is given. I want a screen shot of a website to be created. Is it possible with PHP GD , if so how ? Thanks
You need something like PhantomJS to do it. This can be called from PHP.
Pretty sure GD can't handle this by itself. You'd need an HTML renderer too.
As far as I know, there is no existing PHP-Lib, which can do this. PHP-GD has to do with graphics, but you cant do this with it. Even if: What will happen, if the Site uses Javascript to enable certain important parts of a site? Or even images or other resources, that require long running requests? Or consider sites using flash... There are some tools for linux to take screenshots in batch - configurable with timer etc.