파일시스템 함수 목록
PHP Manual

pclose

(PHP 4, PHP 5)

pcloseCloses process file pointer

설명

int pclose ( resource $handle )

Closes a file pointer to a pipe opened by popen().

인수

handle

The file pointer must be valid, and must have been returned by a successful call to popen().

반환값

Returns the termination status of the process that was run.

예제

Example #1 pclose() example

<?php
$handle 
popen('/bin/ls''r');
pclose($handle);
?>

참고


파일시스템 함수 목록
PHP Manual