发布于 2016-11-18 14:42:57 | 75 次阅读 | 评论: 0 | 来源: 网络整理
popen() 函数使用 command 参数打开进程文件指针。
如果出错,该函数返回 FALSE。
 popen(command,mode) | 参数 | 描述 | 
|---|---|
| command | 必需。规定要执行的命令。 | 
| mode | 必需。规定连接模式。 可能的值: 
 | 
 <?php
 $file = popen("/bin/ls","r");
 //some code to be executed
 pclose($file);
 ?>