Open and close a pipe to the program specified in the command parameter:
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
The pclose() function closes a pipe opened by popen().
pclose(
pipe)
Parameter | Description |
---|---|
pipe | Required. Specifies the pipe opened by popen() |
Return Value: | The termination status, -1 on failure |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!