+ 2

Create file and put contents in file [php]

Hi guys How are you? in this Note i want to learn you how to create a file and write content to file in php . <?php $Mobin = fopen('mobin.html ' , 'w+'); $Askary = "The best scripter and developer" fwrite($Mobin , $Askary); fclose($Mobin); ?> i was create the file and put contents to file. fopen: for create , read , write ... in file fwrite: for write the contents to file fclose: for close the file Tnks. Please follow Me and like.

10th May 2018, 6:44 AM
Mobin_Askary
Mobin_Askary - avatar
2 Respuestas
+ 2
Hello Kuba. i know but the 90% of users watch Q&A
10th May 2018, 6:50 AM
Mobin_Askary
Mobin_Askary - avatar
+ 6
Hello Mobin_Askary, this is a Q&A section - people ask questions and have them answered here. However, Sololearn supports user-built lessons, so please submit your input in the relevant place - the Lesson Factory.
10th May 2018, 6:46 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar