PHP pclose()Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The pclose() function closes a process opened by popen().
Returns FALSE on failure.
Syntax
pclose(pipe)
| Parameters | Description |
|---|---|
| pipe | Required. Specifies the process opened by popen(). |
Example
<?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 Other Extensions