RE: Programmatic Browser Rendering Engine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux