Certified PHP Developer Learning Resources Reading from a file

Reading from a file
 


Read a File
copy$my_file = 'file.txt';
$handle = fopen($my_file, 'r');
$data = fread($handle,filesize($my_file));
 

 For Support