试试
<?
system("/myfilepath/myfile | test.t");
?>

解决方案 »

  1.   

    system("/myfilepath/myfile | test.t");后面那个test.t是什么意思???
      

  2.   

    这样写没有道理嘛,我的机器上并没有test.t这个命令啊
    是不是你的手误,你是准备这样写的:system("/myfilepath/myfile > test.t");对不对
    我这样试了,也是不行
    这样也试了:system("/myfilepath/myfile > test.t &");
    浏览器都不会马上返回
      

  3.   

    把该输出的都输出, ob 也清掉后,再运行 system 行不行
      

  4.   

    模拟一个单独的进程去执行..
    例如:$fp = fsockopen($db->web_private_ip,$db->web_private_port);
    if($fp){
    //echo "GET /frame/email/sendmail.php?user_name=".$_SESSION["forgetpwd_user_name"]."&user_pwd=".$new_pwd."&user_email=".$email." HTTP/1.0\r\n";
    fputs($fp, "GET /frame/email/sendmail.php?user_name=".$_SESSION["forgetpwd_user_name"]."&user_pwd=".$new_pwd."&user_email=".$email." HTTP/1.0\r\n"); 
    fputs($fp, "Host: localhost\r\n"); 
    fputs($fp, "Connection: Close\r\n\r\n"); 
    fclose($fp);
    echo "<script>window.location='/modules/display.php?url=/html/GmPage2Step3.htm';</script>";
    }else{
    echo "<script>alert('邮件发送错误,请与管理员联系!');</script>";
    }
      

  5.   

    |后面的脚本是空的就行..
    $a | $b
    将在 $a 或者 $b 中为 1 的位设为 1。