阅读背景:

检测stdin是否是PHP中的tty设备(终端)或管道?

来源:互联网 

I wrote a php script. I want it show help message when called with standard input connected to a tty device (terminal) before reading and executing interactively, but dont show when called with a file or stream from pipe as standard input.I wrote a php script. I want it show help messa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: