Re: Create image from HTML
| From: | tedd | Date: | Sat, 10 Jan 2009 14:53:31 +0000 |
| Subject: | Re: Create image from HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285951@lists.php.net to get a copy of this message | ||
At 11:29 AM -0500 1/9/09, Christoph Boget wrote:
Does anyone know if it's possible, using PHP, to take HTML (either as an input or from a URL) and generate an image (essentially, create a screenshot) of that HTML/page? I've looked around but was unable to find anything and I'm just not sure if it's that there really is nothing like this out there or if I'm just looking in the wrong places. Any advice/suggestions would be greatly appreciated! thnx, ChristophChristoph: A screenshot would most definitely be a client-side process. The server (thus php) has no way of knowing how the data that was presented to your browser is being, or has been, viewed. Your browser simply asked for data and the server delivered it -- end of story. Now, if you investigate client-side languages, like javascript, the you'll have a better chance of solving your problem. Hope this helps. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com