reading text 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
jamiljarrar
Forum Newbie
Posts: 1
Joined: Sat Apr 04, 2009 12:48 pm

reading text file

Post by jamiljarrar »

hi all,
i am new to php.
I have to make a script to write a text file only 20 lines in a condition that if already 20 lines then replace them with new 20 lines.
And if there will be a pair of line have to be inserted the remove the first two lines and append the new lines to the end.
And i am getting the lines from http post.
my data is in each http post is as follows
nickname= abc
message= something message text

i dont have to use database the only text file.

Any help will be appriciated

Thanks in advance
Post Reply