Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //imageCopy.php
- <?php
- $url = $_GET['url'];
- $fileName = basename($url);
- copy($url, "images/" . $fileName);
- ?>
- <html>
- <head>
- <title>Image Copy</title>
- </head>
- <body>
- <h1>Image Copied!</h1>
- <p>Copied image: <strong><?=$fileName?></strong> from <strong><?=$url?></strong></p>
- <p><a href="images/<?=$fileName?>">open image</a></p>
- </body>
- </html>
- //Browser bookmarklet
- javascript:var%20o=window.location,w=window.open();w.location="http://www.example.com/imageCopy.php?url="+o;void(0)
Advertisement
Add Comment
Please, Sign In to add comment