Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to write in a file in PHP?
Home
PHP
How to write in a file in PHP?
0
votes
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
How to write in a file in PHP?
#php-write-file
#write-file-php
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 6, 2020
by
Robindeniel
PHP fwrite() and fputs() functions are used to write data into file. To write data into a file, you need to use w, r+, w+, x, x+, c or c+ mode.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Write syntax to open a file in PHP?
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
#php-open-file
#php-syntax-open-file
#open-file-syntax
0
votes
Q: How to read a file in PHP?
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
#php-read-file
#read-file-php
0
votes
Q: How to download file in PHP?
asked
Jun 6, 2020
in
PHP
by
Robindeniel
#php-download-file
#download-file-php
0
votes
Q: How to upload file in PHP?
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
#php-upload-file
#upload-file-php
0
votes
Q: How to delete file in PHP?
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
#php-delete-file
#delete-file-php
+1
vote
Q: Which PHP function determines the last access time of a file?
asked
May 13, 2022
in
PHP
by
john ganales
php-file
+1
vote
Q: Which of the following is the default file extension of PHP?
asked
May 11, 2022
in
PHP
by
sharadyadav1986
php-extension
+1
vote
Q: How to call a JavaScript function from PHP?
asked
Feb 2, 2021
in
PHP
by
SakshiSharma
php
php-echo
javascript-php
0
votes
Q: How to Run a PHP code after button click but without refreshing page?
asked
Jun 27, 2020
in
PHP
by
DavidAnderson
#php
0
votes
Q: How to initiate a session in PHP?
asked
Jun 23, 2019
in
PHP
by
SakshiSharma
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
...