Help with reading, writing, opening etc.
| From: | ScreamKing | Date: | Thu, 28 Dec 2000 13:26:56 +0000 |
| Subject: | Help with reading, writing, opening etc. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32077@lists.php.net to get a copy of this message | ||
Hi All,
PROBLEM
Create three files
- text.txt file
- display.php file to display text.txt file (This opens text.txt for reading only)
- admin.php file that updates the text.txt file (This should write to the text.txt file)
I can get the display file to show the contents of the text.txt file, but am having severe
difficulties with the admin.php and getting it to write to the text.txt file. (I can get it to
write something like echo "Add this"; but I am not sure how to go about the following...
Basically I am trying to make an admin page where someone can log on and use a form to submit some
text. The text is then added (written) to the text.txt file. However despite trying allsorts, I am
not sure how to do it. Any help would be appreciated.
This is a bit like a news updater or something along those lines (As I want to make it easy for
someone with no HTML/PHP experience to update a page by simply entering text and submitting).
Any help with this would be appreciated!
(Obviously as time passes, I would like to expand this into being able to edit, modify and delete
existing data from the text.file, but for now, I am simply stuck on the main part).
Thanks a lot,
SK