fopen read file code example
Example 1: php file read
<?php
echo file_get_contents("text.txt");
?>
Example 2: PHP File Open/Read/Close
$myfile= fopen("welcom.txt","w");
echo fwrite($myfile, filesize("welcom.txt"));
fclose($myfile);
Example 3: PHP File Open/Read/Close
require_once "php2/include.php";
echo $varriable;