open file in php
snippet in php

php open file

user9934


 $myfile = fopen("testfile.txt", "w")

open file in php

user8269


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

 fclose($myfile);
?>