Close an open file in PHP

Description

The following code shows how to close an open file.

Example


/*from www .ja v a2  s  .co m*/

<?php
    $file = fopen("test.txt","r");
    //some code to be executed
    fclose($file);
?>




















Home »
  PHP Tutorial »
    File »




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