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);
?>
PHPファイルシステムリファレンスマニュアルを完了