PHP의 만일 pclose () 함수
정의 및 사용
만일 pclose () 함수는 popen에 의해 폐쇄 () 프로세스를 엽니 다.
이 작업이 실패하면, 함수는 FALSE를 반환합니다.
문법
pclose(pipe)
参数 | 描述 |
---|---|
pipe | 必需。规定由 popen() 打开的进程。 |
예
<?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);
?>
PHP 파일 시스템 참조 설명서를 완료