open php file in php 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);
<?php
echo file_get_contents("text.txt");
?>
$myfile= fopen("welcom.txt","w");
echo fwrite($myfile, filesize("welcom.txt"));
fclose($myfile);