All pastes #491682 Raw Edit

Someone

public php v1 · immutable
·published 2007-05-16 20:07 UTC
rendered paste body
<?php$i = "iuzj";	// start at iuzj$limit = "10000000";	// max amount we want to generate$whichfile=1;	// we write to 1.txt 2.txt ect$file = fopen($whichfile.".txt","w");	// open the first filefor ($n=0; $n < $limit; $n++)	// set n=0 while n less than $limit, increase n by 1{	echo sprintf("[%.7d] %s\n", $n, $i); // send to screen for user viewingfwrite($file,$i."\r\n");	// write to our file$i++;	// increase our start, iuzj becomes iuzk, ectif ($n % 500000 == 0)	// is the current amount done divisible by 500k (ie 500k 1mill 1.5mill 2mill)	{	//yes	fclose($file);	// close our old file	$whichfile++;	// increase file counter by 1	$file = fopen($whichfile.".txt","w");	// open new file	}	// end this if}	// end of loop, $limit has been reachedfclose($file);	// close filesleep;	// sleep doesnt really work :(?>