Close a pipe opened by popen() in PHP

Description

The following code shows how to close a pipe opened by popen().

Example


 /*from  www  . j  a  v a  2 s  .c  o  m*/
  
<?php
    $file = popen("test.txt","r");
    //some code to be executed
    pclose($file);
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip