Saving to a txt file

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
Slane
Forum Newbie
Posts: 3
Joined: Fri Jul 30, 2004 11:34 am

Saving to a txt file

Post by Slane »

I am trying to make a posting script. Where the users would post and see there message and see others, but I can't figure out a way to save to save the messages. As in have like one .txt(flatfile I think) to each topic. I am trying to make a simple forum you could say. And I cannot figure out how to save the topics and or messages! Any help?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what code do you have so far? have you found the functions like [php_man]fopen[/php_man]()/[php_man]fwrite[/php_man]()/[php_man]file_get_contents[/php_man]()?
Slane
Forum Newbie
Posts: 3
Joined: Fri Jul 30, 2004 11:34 am

Post by Slane »

i have more or less no coding done, just three boxes two input and then on the next page three boxes where it is displayed. So I really need to learn how to save the messages into one big topic(http://slane.somewhat-useless.com/blah) and after I can get them to save I can figure the rest out myself
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Well, check into the functions he linked you to, and post here with any questions :)

Good luck.
Post Reply