Current Location: Home> Function Categories> pclose

pclose

Close process file pointer
Name:pclose
Category:File system
Programming Language:php
One-line Description:Close the process with popen() open.

Definition and usage

pclose() function closes the pipeline opened by popen().

Example

 <?php
$file = popen ( "/bin/ls" , "r" ) ;

//Some code to be executed

pclose ( $file ) ;
?>

grammar

 pclose ( pipe )
parameter describe
pipe Required. Specifies the pipeline opened by popen().

illustrate

This function returns the terminated state of the running process.

If an error occurs, false is returned.

Similar Functions
  • Determine whether the given file name is a normal file is_file

    is_file

    Determinewhethertheg
  • alias for fwrite fputs

    fputs

    aliasforfwrite
  • Read a line from a file pointer fgets

    fgets

    Readalinefromafilepo
  • See unlink() or unset() (PHP does not have delete keywords or functions) delete

    delete

    Seeunlink()orunset()
  • Determine whether the given file name is executable is_executable

    is_executable

    Determinewhethertheg
  • Check if the file or directory exists file_exists

    file_exists

    Checkifthefileordire
  • Get file information through the opened file pointer fstat

    fstat

    Getfileinformationth
  • Change file mode chmod

    chmod

    Changefilemode
Popular Articles