note 11724 deleted from fread by torben
| From: | torben@php.net | Date: | Sun, 04 Mar 2001 12:21:10 +0000 |
| Subject: | note 11724 deleted from fread by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11840@lists.php.net to get a copy of this message | ||
Regarding above note from aidanishere@hotmail.com.
If I understand you correctly, you'll need to do an append using the "a" argument
with fopen.
For example
$fp=fopen($file_name,"a");
fwrite($fp, $line_to_write);
I wrote a script that does what I thought you needed. Find it at
http://www.gemini1consulting.com/tekhelp/append_text.php
Refreshing this script will append an End of File marker and a timestamp to the textfile
event1.txt. If you have trouble running this script locally, its probably a permissions issue. -
gemini1