Close a file in php

Sun Oct 26, 2008 7:58 pm

Close file in php
Code:
<?php
   $fh 
fopen("./file.txt""rt");
   while (!
feof($fh)) 
      echo 
fgets($fh);
   
fclose($fh);
?>




  Related Posts  to : Close a file in php
 Close database connections in php     -  
 open/close new window using javascript     -  
 HTTP POST msg connection close problem     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 Copy file to file in java code- implementation     -  
 file descriptor vs file pointer     -  
 getting file name of html input file tag using jsp     -  
 How to convert xml file to Pdf file using C     -  
 C++ File I/O     -  
 web.xml file     -  

Topic Tags

PHP Files and I/O