Is there any way of taking a screenshot of a website in PHP, then saving it to a file?
Yes it is. If you only need image of URL try this
Pass the url as argument and you'll get the image for more details check this link http://zenithwebtechnologies.com.au/auto-thumbnail-generation-from-url.html