PHP pclose() 函数

定义和用法
pclose() 函数关闭由 popen() 打开的进程。
如果失败,该函数返回 FALSE。
语法
pclose(pipe)
参数 | 描述 |
---|---|
pipe | 必需。规定由 popen() 打开的进程。 |
实例
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>

点我分享笔记