Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "PHP\n";
fwrite($myfile, $txt);
$txt = "LARAVEL\n";
fwrite($myfile, $txt);
fclose($myfile);
$file1 = fopen("newfile.txt", "r") or die("Unable to open file!");
echo fread($file1,filesize("newfile.txt"));
fclose($file1);
?>
</body>
</html>
The most helpful PHP solutions