+ 1

How to open the file

I wanna to open text.txt file to write hello into him

8th Jul 2016, 1:05 PM
Vadim Dordienko
Vadim Dordienko - avatar
2 Answers
+ 1
$variable = file_get_contents("file.txt");
30th Nov 2016, 9:58 PM
Hooman Hassanzadeh
Hooman Hassanzadeh - avatar
0
$h=fopen("text.txt","w"); fwrite($h,"hello"); fclose($h);
9th Jul 2016, 5:56 AM
HamidReza GHolami
HamidReza GHolami - avatar