全栈php/pyhon/shell 获取 stdin 输入 php 获取 stdin 创建 stdin.php 文件,输入下面内容: #!/usr/bin/php <?php while($f = fgets(STDIN)){ echo "line: $f"; } 在命令行下运行 cat stdin.p... shanhuhai 11年前 (2014-12-10) 3365℃ 0喜欢