print?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( " ", " ", $line );
$tr = trim( $line );
if ( preg_match( "/\*|^*|^ {1,}*|/*|*/|^ {1,}//|^///", $line ) || $tr === "" ) {
continue;
}
$lineCount++;
$line = str_replace( "
", "", $line );
$line = str_replace( "
", "", $line );
if($lineCount
is_m('5.txt',"".$line."@qq.com
");
continue;
}elseif ($lineCount
is_m('10.txt',"".$line."@qq.com
");
break;
}
}
function is_m($filename,$c){
$handle = fopen($filename, "a");
if ($handle) {
fwrite($handle, $c );
fclose($handle);
} }
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号