Skip to content

Instantly share code, notes, and snippets.

@coreyweb
Created March 6, 2012 04:42
Show Gist options
  • Save coreyweb/1983601 to your computer and use it in GitHub Desktop.
Save coreyweb/1983601 to your computer and use it in GitHub Desktop.
Retrieve screenshot of any page on the web
<?php
$snap = 'http://s.wordpress.com/mshots/v1/';
$url = 'http://www.squidoo.com';
$alt = 'alt value';
$width = '400';
$height = '300';
?>
<img src="<?php echo $snap . urlencode($url) ?>?w=<?php echo $width ?>&amp;h=<?php echo $height ?>" alt="<?php echo $alt ?>" title="<?php echo $alt ?>" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment