Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $capture = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL);
- $browser = new COM("InternetExplorer.Application");
- $handle = $browser->HWND;
- $browser->Visible = true;
- $browser->Fullscreen = true;
- $browser->Navigate("$capture");
- $idImg = rand();
- $img = "snap/iesnap-$idImg.png";
- while($browser->Busy){
- com_message_pump(1000);
- }
- $im = imagegrabwindow($handle, 0);
- $browser->Quit();
- imagepng($im, $img);
- imagedestroy($im);
- echo "<img src='thumb.php?src=$img&w=500&h=500' width='500' height='500' />";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment