Premkumar
0
Q:

PHP File Open/Read/Close

$myfile= fopen("welcom.txt","w");
echo fwrite($myfile, filesize("welcom.txt"));
fclose($myfile);
1

 <?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
echo fread($myfile,filesize("webdictionary.txt"));

 fclose($myfile);
?>
 
2
require_once "php2/include.php";
echo $varriable;
0
<?php
    $myfile = fopen ("webdictionary.txt" , "r") or die ("Unable to open file!");
    echo fread ("$myfile", filesize ("webdictionary.txt"));
    fclose ($myfile);
0

New to Communities?

Join the community