".$url." 57 and $ascii < 65 or $ascii > 90 and $ascii < 97) { $ascii++; } $new = chr($ascii); $str[strlen($str)-1] = $new; } if($ascii > 122) { $n = 1; while ($str[strlen($str)-$n] == chr(123)) { $n++; } if (strlen($str)-$n >= 0) { $letter = $str[strlen($str)-$n]; $ascii = ord($letter); $ascii++; while ($ascii > 57 and $ascii < 65 or $ascii > 90 and $ascii < 97) { $ascii++; } $new = chr($ascii); $str[strlen($str)-$n] = $new; } else { $str= chr(48).$str; } if ($n > 1) { $n = $n - 1; } while (ord($str[strlen($str)-$n]) > 122) { $str[strlen($str)-$n] = chr(48); $n = $n - 1; } } return $str; } function writetofile($str) { $myFile = "results.txt"; $fh = fopen($myFile, 'a+') or die("can't open file"); $stringData = "$str\n"; fwrite($fh, $stringData); fclose($fh); } ///////////////////////////////////////////////////////////////////// echo "Version Curl 1.0"; //Prepares Basic Document Tree $tld = "http://www.w3wizardry.com/"; $extcounter = 0; //What extension are we on? $extlist = array("php", "html", "css", "js", "java", "xml", "xhtml", "htm", "shtml"); $page = 0; //Sets A Default for Page Number $page = $_GET['page']; //Browser Gets real Page # if available $previous = $_GET['str']; // Retrives The Current String from GET $destroy = $_GET['destroy']; $str = chr(48); //Starting Value for our String if ($page != 0) { $str = $previous; } $counter = 0; //Number of times the Script has been run. $limit = 1000; //Number of times you want the string updated while ($counter < $limit) { $str = getnext($str); while ($extcounter < sizeof($extlist)) { $extension = $extlist[$extcounter]; $extension = '.'.$extension; $url = $tld.$str.$extension; writetofile($url); // Curl($url); $extcounter++; $counter++; } $extcounter = 0; } $page++; sleep(4); echo ""; ?>