<?
function get_screenshot($link){
$content = @file_get_contents('http://open.thumbshots.org/image.pxf?url='.$link);
$fp = @fopen('image.gif',"w");
@fwrite($fp,$content);
fclose($fp);
return '<img src="image.gif" alt="" />';
}
print get_screenshot('http://www.gerenweb.com');
?>