你查查手册里面的exec的用法不就行了么?
解决方案 »
- 提问
- webservice 取值的问题二,在线等
- 另类方式实现PHP后台运行
- 正则表达式读取html代码的问题
- redhat 9 es4 下安装oracle11g+php问题
- 如下asp代码的功能可以在php里实现吗?
- 请问:一个页面含多个iframe,但当打开此页面时,iframe的页面还没有load得到,白了一片,请问怎样才能使iframe还没有load出来时,显示‘
- 已将记录分页,但输入任意数如:3,按go键想跳转到第3页,却无响应,请帮忙查查看哦...
- 为什么判断错误?!
- EditPlus和浏览器中Courier New字体发虚,怎么解决?
- php能不能创建组件对象。。。。
- apache 2.0好用还是1.0好用?php 4.3.2好用还是以前的好用?我被php的版本都搞乱套了。
string exec ( string command [, array output [, int return_var]])
exec() executes the given command, however it does not output anything. It simply returns the last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function. If the array argument is present, then the specified array will be filled with every line of output from the command. Note that if the array already contains some elements, exec() will append to the end of the array. If you do not want the function to append elements, call unset() on the array before passing it to exec(). If the return_var argument is present along with the array argument, then the return status of the executed command will be written to this variable.