Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

write file in php

// if not file is there then automatic create and write inside it.
$fptr = fopen('myfile.txt','w');
fwrite($fptr,"i am writing file in this
");
fwrite($fptr,'writing another line.');
fclose($fptr);
 
PREVIOUS NEXT
Tagged: #write #file #php
ADD COMMENT
Topic
Name
4+4 =