- 1

How to send text at documment.txt in php

i want help please

29th Sep 2017, 9:36 PM
Abdou Khalid
Abdou Khalid - avatar
3 Answers
+ 2
please check PHP course in SL <?php $myfile = fopen("names.txt", "w"); $txt = "John\n"; fwrite($myfile, $txt); $txt = "David\n"; fwrite($myfile, $txt); fclose($myfile); /* File contains: John David */ ?>
29th Sep 2017, 9:43 PM
Daniel
Daniel - avatar
+ 1
Send? Can you be a bit more specific?
29th Sep 2017, 10:35 PM
Limitless
Limitless - avatar
+ 1
thank you
29th Sep 2017, 10:59 PM
Abdou Khalid
Abdou Khalid - avatar