PHP pclose() Function
Definition and Usage
The pclose() function closes the pipe opened by popen().
Syntax
pclose(Pipe)
Parameter | Description |
---|---|
Pipe | Required. Specifies the pipe opened by popen(). |
Description
This function returns the termination status of the running process.
If an error occurs, it returns false.
Example
<?php $file = popen("/bin/ls","r"); //Some code to be executed pclose($file); ?>