PHP pclose() 函數(shù)
完整的 PHP Filesystem 參考手冊
定義和用法
pclose() 函數(shù)關(guān)閉由 popen() 打開的進程。
如果失敗,該函數(shù)返回 FALSE。
語法
參數(shù) | 描述 |
pipe | 必需。規(guī)定由 popen() 打開的進程。 |
實例
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
完整的 PHP Filesystem 參考手冊