Reading Specific Data from a File : File Read : File Directory PHP Source Code


PHP Source Code » File Directory » File Read »

 

Reading Specific Data from a File



<?php
  $myfile = "./test.txt";
  $openfile = fopen ($myfile, "r"or die ("Couldn't open the file");

  $filesize =filesize($myfile);
  fseek ($openfile, 8);
  $sp_data = fread ($openfile, ($filesize - 8)) ;

  print $sp_data;
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File Read