RE: [PHP] write form data to a text file
| From: | Christian Joergensen | Date: | Tue, 13 Mar 2001 20:59:56 +0000 |
| Subject: | RE: [PHP] write form data to a text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43710@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Jerry Lake [mailto:jerryl@europa.com]
Sent: Tuesday, March 13, 2001 9:55 PM
To: php-general@lists.php.net
Subject: RE: [PHP] write form data to a text file
> This goes along with my previous question
> I don't see a php function to make a file
Cut'n'paste from: <http://www.php.net/manual/en/function.fopen.php>
--
'r' - Open for reading only; place the file pointer at the beginning of the
file.
'r+' - Open for reading and writing; place the file pointer at the beginning
of the file.
'w' - Open for writing only; place the file pointer at the beginning of the
file and truncate the file to zero length. If the file does not exist,
attempt to create it.
'w+' - Open for reading and writing; place the file pointer at the beginning
of the file and truncate the file to zero length. If the file does not
exist, attempt to create it.
'a' - Open for writing only; place the file pointer at the end of the file.
If the file does not exist, attempt to create it.
'a+' - Open for reading and writing; place the file pointer at the end of
the file. If the file does not exist, attempt to create it.
--
Hint: Look for options with "If the file does not exist, attempt to create
it." :)
--
Christian Jørgensen
http://www.razor.dk