How to create a text file in php?
how to create and write to a file on the server or on the system?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
<?php
$myfile = fopen("test.txt", "w") ;
$string= "Aviance Forums";
fwrite($myfile, $string);
fclose($myfile);
?>