PHP pclose () function
Definition and Usage
pclose () function is closed by popen () opens the process.
If this fails, the function returns FALSE.
grammar
pclose(pipe)
参数 | 描述 |
---|---|
pipe | 必需。规定由 popen() 打开的进程。 |
Examples
<?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);
?>
Complete PHP Filesystem Reference Manual