Newbie cant figure it out

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cochran242
Forum Newbie
Posts: 1
Joined: Tue May 18, 2004 12:06 pm

Newbie cant figure it out

Post by cochran242 »

I could use some help. I want to make a REALLY simple site. 3 pages. I have got the art all set, but I want the content to be read from .txt files (3 of them). I got it to display using :
<?php
include ("hometxt.txt");
?>

Now I want to be able to edit these three files from the website. First a dropdown to select which text to edit, then I want it to show a text box with the text in it, so I can edit it, then I can save it. I have looked at the "Flat-file" docs on the web but cant figure it out.

Please help. Thank you.
Casey
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'd a combination of glob for populating the drop down; file() for getting the content of the file; standard html forms for editing the data; andfwrite() to save the file;
Post Reply