
Untitled
By: a guest on
Mar 28th, 2010 | syntax:
PHP | size: 0.65 KB | views:
3,141 | expires: Never
<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>