how to read file content in php code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: read text file php
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
echo fread($myfile,filesize("webdictionary.txt"));
fclose($myfile);
?>