Anonymous
public php v1 · immutable<?php$file_count=1;$file=dirname(__FILE__).'\numeric_gen\numeric_5mb'.$file_count.'.txt';$fp=@fopen($file, 'a');$count=0;$last=0;while(1) { if(@filesize($file)>=100) { @fclose($fp); $file_count++; $file=dirname(__FILE__).'\numeric_gen\numeric_5mb'.$file_count.'.txt'; $fp=@fopen($file, 'a'); } if($count==$last+1000) { $last=$count; echo $last."\n"; @fwrite($fp, $count."\n"); } $count++; @fwrite($fp, $count."\n");}fclose($fp);?>