I have created a text file and now am trying to write to it. Simple enough...so I thought...but nothing is getting written.
$lfile=date("Ymd")."Out.txt";
if (file_exists($lfile)) {
fopen($lfile,'w') or die ("Can't Open Log File");
$lstring="HI!";
fwrite($lfile, $lstring);
fclose($lfile);
}
Full rights are granted.
Am I missing something here?
$lfile=date("Ymd")."Out.txt";
if (file_exists($lfile)) {
fopen($lfile,'w') or die ("Can't Open Log File");
$lstring="HI!";
fwrite($lfile, $lstring);
fclose($lfile);
}
Full rights are granted.
Am I missing something here?