PHP pclose()Function


PHP Filesystem 参考手册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);
?>


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual Other Extensions