我正在努力理解之间的区别shell_exec()
and exec()
...
我一直用exec()
执行服务器端命令,我什么时候使用shell_exec()
?
Is shell_exec()
只是一个简写exec()
?似乎参数更少,效果是一样的。
shell_exec
以字符串形式返回所有输出流。exec
默认情况下返回输出的最后一行,但可以将所有输出提供为指定为第二个参数的数组。
See
- http://php.net/manual/en/function.shell-exec.php http://php.net/manual/en/function.shell-exec.php
- http://php.net/manual/en/function.exec.php http://php.net/manual/en/function.exec.php
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)