Hi all, I wonder if anyone can help.
I am trying to take text from a text area in a web page and write that text
into a file on a webserver. That didn't work so I just tried to simply write
a string specified below directly into the file just to see if that would
work
I am using this code but it isn't working and when I check the file it
remains unmodified even the date last modified hasn't changed.
Help would be appreciated,
Thanks,
Hatim.
$newHTMLfile = fopen($newHTMLfilePath,"w+");
fwrite($newHTMLfile, "New text to add to file.");
fclose($newHTMLfile);
echo "new text should be written to file.";