pclose

 int pclose ( resource $handle ) 

説明

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

戻り値

Returns the termination status of the process that was run. In case of an error then -1 is returned.