Re: Create a screenshot of a website
| From: | Kim Madsen | Date: | Thu, 22 Oct 2009 16:01:44 +0000 |
| Subject: | Re: Create a screenshot of a website | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299226@lists.php.net to get a copy of this message | ||
resea soul wrote on 2009-10-22 15:28:
Hi, I want to be able to get a screenshot of a given website on the fly. Can you give me any suggestions.Do you mean "I wanna make a screendump of _my_ website"? Then this is for you: http://dk2.php.net/manual/en/function.imagegrabscreen.php - It works with the COM interface on windows and therefore is a windows-only function. If you mean create a screendump of another website you don't have control over i think that would require som GD coding, not sure if that's possible with PHP only, most likely I would say no. If you mean you wanna rip a website and use it in your own then there's two functions to check: readfile() which reads the whole site and outputs this again. fopen() where you can read an URL line by line and easy do some alterations to the line if you like. I hope this will help you on the way. -- Kind regards Kim Emax - masterminds.dk