How to create a basic text file in php?5
816 5b5cc79ae4d2b419777504da
Q: How to create a basic text file in php?
- उत्तर देखें
- Workspace
- चर्चा
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 );
समान प्रश्न
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.