小野です。
抜けがありました。
先ほどのだと、確かにおかしすぎますね。
>--- test.php ---
>
>set_time_limit(0);
>$stdin = fopen("php://stdin", "r");
>
>if (!$stdin) {
> die("Error\n");
>}
>for (;;) {
> $line = fgets($stdin, 1024);
if( ereg("From",$line) ){
fputs($fp,$line);
> break;
}
>}
>
--------------------- Original Message Ends --------------------
小野 昇一<shoichio@nttpc.co.jp>