Answers for "PHP File Open/Read/Close"

PHP
1

PHP File Open/Read/Close

$myfile= fopen("welcom.txt","w");
echo fwrite($myfile, filesize("welcom.txt"));
fclose($myfile);
Posted by: Guest on October-29-2020
0

PHP File Open/Read/Close

require_once "php2/include.php";
echo $varriable;
Posted by: Guest on October-29-2020
0

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);
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language