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
  • Create a file with a unique file name tempnam

    tempnam

    Createafilewithauniq
  • Format input from a file fscanf

    fscanf

    Formatinputfromafile
  • Open process file pointer popen

    popen

    Openprocessfilepoint
  • Create a hard connection link

    link

    Createahardconnectio
  • Read files (safely used in binary files) fread

    fread

    Readfiles(safelyused
  • Move uploaded files to a new location move_uploaded_file

    move_uploaded_file

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

    delete

    Seeunlink()orunset()
  • Export buffered content to file fflush

    fflush

    Exportbufferedconten
Popular Articles