RE: [PHP] Programmatic Browser Rendering Engine?

From: Date: Wed, 10 Nov 2004 21:50:18 +0000
Subject: RE: [PHP] Programmatic Browser Rendering Engine?
Groups: php.general 
Request: Send a blank email to php-general+get-201723@lists.php.net to get a copy of this message
[snip] This function surfs to the given URL, as if a browser window the dimensions (imagesx, imagesy) of image were opened to that URL, and places in image a representation of what the user would see if they surfed to that site. If width and height are provided, the surfing is done as if the browser window were the provided width and height, and the result is then scaled to fit into image. Example: <?php $image = imagecreatetruecolor(800, 600); imagesurfto($image, 'http://php.net'); header("Content-type: image/jpeg"); imagejpeg($image); ?> [/snip] Perhaps an iframe? The problem here is that you would have to be able to get an image of a remote site without having a 'printscreen' available. You could dynamically control an iframe, but the remote would not stretch or shrink to fit.

« previous php.general (#201723) next »