今天人少啊
都跑去哪了? 地主呢?给个QQ俺啊
- 娱乐乐园,
作者 lxyf 发布于 2003-06-02 分类:php基础编程
exec( "rm -rf $jishu");
其中的rm -rf是什么意思呢?
是一个命令还是两个?
希望得到大家的详细指点,先谢谢了
逛论坛交流:问一个exec的问题
如何在不修改max_exection_time和upload_max_filesize情况下上传大文件?
通过system() or exec() 在linux下调用系统命令
这个就要查rm.exe(.com?)的参数了
在那里可以查到呢?
是不是用exec 去调用rm ,然后rf是rm的一个参数
我学php时间不长,不知道这么理解对吗?
如果对的话,exec的功能是什么呢?
谢谢指点
exec
(PHP 3, PHP 4 )
exec -- Execute an external program
Description
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.
上面意思说,exec是调用外部程序的一个命令,并且可以指定不输出任何运行结果或输出结果到数组。
你的理解应该是正确的。
3 条回复
回复