writes file in php
In PHP we are using fwrite() function to retrieve data in file.we are using fwrite() function that will return how many character will placed in the file only it is display.
Output:
In PHP we are using fwrite() function to retrieve data in file.we are using fwrite() function that will return how many character will placed in the file only it is display.
html> <body> <?php $content="hello world"; $f=fopen('today.txt','w'); // today.txt must in read.php location $fh=fwrite($f,$content); // it is no of character in content echo $fh; fclose($f); ?> </body> </html> |
Output:
0 comments:
Post a Comment