How to create a text file in php?

how to create and write to a file on the server or on the system?

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)
 <?php
 $myfile = fopen("test.txt", "w") ;
 $string= "Aviance Forums";
 fwrite($myfile, $string);
 fclose($myfile);
 ?>
 
Team Leader Answered on March 19, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.