13
Come si fa ad aprire un file di testo e scrivere con php appendstyleCome aprire file di testo e scrivere in append-style con php?
textFile.txt
//caught these variables
$var1 = $_POST['string1'];
$var2 = $_POST['string2'];
$var3 = $_POST['string3'];
$handle = fopen("textFile.txt", "w");
fwrite = ("%s %s %s\n", $var1, $var2, $var3, handle);//not the way to append to textfile
fclose($handle);
+ 1 per entrare nei dettagli. 'fprintf()' sarebbe anche una buona scelta. –