<?php ini_set("max_execution_time","0"); $fp=fopen("num.txt","w+"); for($i=0;$i<=99999999;$i++) { fwrite($fp,$i."\r\n"); } fclose($fp); ?>