<?php
if (isset($_POST['submit'])) {
$a = $_POST['times'];
$b = 1;
$array = array();

while ($b <= $a) {
$file = file_get_contents("http://www.hackthissite.org/404.html");
$explode = explode('<font size="2">', $file);
$search = $explode['1'];

$strpos = strpos($search, "</font>");
$substr = trim(substr($search, 0, $strpos));

if (!in_array($substr, $array)) {
array_push($array, $substr);
}
$b++;
}
echo implode("<br />\n", $array);
} else {
?>
<form action="#" method="post">
Times to Try: <input type="text" name="times" /> <input type="submit" name="submit" value="Submit" />
</form>
<?php
}
?>