pclose

(PHP 4, PHP 5, PHP 7)

pclose�رս����ļ�ָ��

˵��

pclose ( resource $handle ) : int

�ر��� popen() �򿪵�ָ��ܵ����ļ�ָ�롣

����

handle

�ļ�ָ�������Ч���ұ����dzɹ����� popen() �����صġ�

����ֵ

�������еĽ��̵���ֹ״̬����������ʱ�᷵�� -1��

����

Example #1 pclose() ����

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

ע��

Note: Unix Only:

proc_close() is internally implemented using the waitpid(3) system call. To obtain the real exit status code the pcntl_wexitstatus() function should be used.

�μ�

  • popen() - �򿪽����ļ�ָ��