PHP File Open/Read/Close code example
Example 1: PHP File Open/Read/Close
$myfile= fopen("welcom.txt","w");
echo fwrite($myfile, filesize("welcom.txt"));
fclose($myfile);
Example 2: PHP File Open/Read/Close
require_once "php2/include.php";
echo $varriable;
Example 3: echo fread($myfile,filesize("webdictionary.txt"));
<?php
$myfile = fopen ("webdictionary.txt" , "r") or die ("Unable to open file!");
echo fread ("$myfile", filesize ("webdictionary.txt"));
fclose ($myfile);