..
The fwrite function is used to write in a file previously opened using the function fopen .
The function accepts three parameters:
The fwrite function returns the number of bytes written on success, return an error back.
Here's an example:
<? Php
$ Myfile = fopen ('scrivimi.txt', 'w');
fwrite ($ myfile, 'Long live centre-equestre-lepuy.com');
fclose ($ myfile);
?>
| |
Linux (Course)
Complete guide to open-source system. From 49 €. |
| |
MySQL (Course)
Management of open-source database. From 39 €. |
| |
PHP (Course)
Full course for creating dynamic Web sites. From 49 €. |