<?php | |
$number = $_REQUEST['number']; | |
// header ("Content-type: image/jpeg"); | |
$lines = file('rand'); | |
foreach ($lines as $line_num => $line) { | |
if ($line_num == 1000 || $line >= $number) { | |
$line = trim($line); | |
header ("Location: http://www.eclipse.org/projects/fragments/eclipsecon2006beer/images/$line.jpg"); | |
break; | |
} | |
} | |
?> |