且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP shell_exec() 与 exec()

更新时间:2022-02-21 01:47:43

shell_exec 以字符串形式返回所有输出流.exec 默认返回输出的最后一行,但可以将所有输出作为指定为第二个参数的数组提供.

shell_exec returns all of the output stream as a string. exec returns the last line of the output by default, but can provide all output as an array specifed as the second parameter.