php 文件操作
ini_set('memory_limit', '-1'); // ini_set("max_execution_time", "3600"); //设置超时时间 $filep='qq.txt'; $str=file('qq.txt'); $lineCount = 0; foreach( $str AS $line ) { $line = str_replace( "\t", " ", $line ); $tr = trim( $line ); if ( preg_match( "/\\*|^\*|^ {1,}\*|\/\*|\*\/|^ {1,}\/\/|^\/\//", $line ) || $tr === "" ) { continue; } $lineCount++; $line = str_replace( "\r", "", $line ); $line = str_replace( "\n", "", $line ); if($lineCount<br> <div class="clear"> </div>