Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>search</title>
- <script language="JavaScript">
- function notFound(image) {
- image.style.display = "none";
- }
- </script>
- </head>
- <body>
- <?php
- for ($i=0; $i<2000; $i++) {
- $link = genLink();
- echo "<a href='http://pic.quiptxt.com/".$link."' target='_blank'><img alt='' width='100' height='100' border='0'src='http://quipimg.s3.amazonaws.com/".$link.".jpg' onerror='notFound(this);'></a> ";
- }
- function genLink() {
- // characters to use
- $chars = array_merge(range('a','z'),range('0','9'));
- // shuffle array
- shuffle($chars);
- // return characters
- return substr(implode('',$chars),0,5);
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement