Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $path = "";
- if( isset($_GET['url']) ){
- $url = $_GET['url'];
- $timestamp = round(microtime(true) * 1000);
- $fn = $timestamp;
- $path = $fn.".png";
- $output = exec('phantomjs capture.js '.$url.' '.$path);
- }
- ?>
- <form>
- <input type="url" name="url" placeholder="URL to capture">
- <input type="submit">
- </form>
- <br>
- <img src="<?= $path ?>" alt="">
Advertisement
Add Comment
Please, Sign In to add comment