1

Code:

if (isset($_POST['ta'])) {
    $newData = nl2br (htmlspecialchars($_POST['ta'])); 
    $handle = fopen($myFile, "w");
    fwrite($handle, $newdata);
    fclose($handle);
}

gives me the error of:

Warning: fopen(file.txt): failed to open stream: Permission denied in /var/www/eduardoCMS/file.php on line 12

does anyone know why this is and how I could fix that. thank you guys for all the help, much apprecaited

Vic Seedoubleyew
  • 9,888
  • 6
  • 55
  • 76
Eduardo Hernandez
  • 469
  • 1
  • 5
  • 11

0 Answers0