13
Làm thế nào để bạn mở một textfile và ghi vào nó với php appendstyleLàm thế nào để mở textfile và viết cho nó chắp thêm phong cách với 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 để đi vào chi tiết. 'fprintf()' cũng sẽ là một lựa chọn tốt. –