phpファイル操作_PHPチュートリアル

WBOY
リリース: 2016-07-14 10:09:54
オリジナル
1035 人が閲覧しました

print?ini_set('memory_limit', '-1');        //
ini_set("最大実行時間", "3600"); //超時間設定
 
$filep='qq.txt'; 
 
 
$str=file('qq.txt'); 
 $lineCount = 0; 
   foreach( $str AS $line ) {
       $line = str_replace( "t", " ", $line ); 
        $tr = トリム( $line ); 
            if ( preg_match( "/\*|^*|^ {1,}*|/*|*/|^ {1,}//|^///", $line ) || $tr === " " ) {
            続く; 
            }
            $lineCount++; 
         
        $line = str_replace( "r", "", $line ); 
         $line = str_replace( "n", "", $line ); 
           if($lineCount             is_m('5.txt',"".$line."@qq.comn"); 
             続く; 
           }elseif ($lineCount               is_m('10.txt',"".$line."@qq.comn"); 
                壊す; 
           }
            
         
        }
 
         
         
    関数 is_m($filename,$c){
         $handle = fopen($filename, "a"); 
         if ($handle) {
         fwrite($handle, $c ); 
         fclose($handle); 
        } }

www.bkjia.comtru​​ehttp://www.bkjia.com/PHPjc/477603.html技術記事 print?ini_set(memory_limit, -1); // ini_set(max_execution_time, 3600); //設定超過時間 $filep=qq.txt; $str=ファイル(qq.txt); $lineCount = 0; foreach( $str AS $line ) { $line = str_...
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
最新の問題
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!