PHP – File Close

by Hiroshi on June 23, 2008

in File, File Manipulation

The next logical step after you have opened a file and finished your business with it is to close that file down. You don’t want an open file running around on your server taking up resources.

PHP – File Close Function

<?php
$FileName = "testFile.txt";
$FileHandle = fopen($FileName, 'w') or die("can't open file");
fclose($FileHandle);
?>

Related Posts

Previous post:

Next post: