How to create a basic text file in php?5
817 5b5cc79ae4d2b419777504da
Q: How to create a basic text file in php?
- Show Answer
- Workspace
- Discuss
Answer :
Explanation :
$filename = "/home/user/guest/newfile.txt";$file = fopen( $filename, "w" );if( $file == false ){echo ( "Error in opening new file" );exit(); }fwrite( $file, "This is a simple test\n" );fclose( $file );
Similar Questions
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.