Hi all you fine people!
I'm rather fresh in php and I'm designing webpages for a local sportsclub.
I have to design a way to print latest information on the frontpage, like
about 'Note that Tonight's Rambo Excercise for Kids takes place at the
sportsfield if the weather allows - Susanna"
My idea is that several people would update these lines, and that there
would be e. g. five latest messges visible.
Limiting the size of a message might be a good idea. Pages are in finnish,
and we need to use some extended characters, like ä etc.
I was thinmking that there would be a form, where certain people could
leave a message. The message would be added at the end of the file
'news.txt', the date and time of the message would be saved in the same
file as well. Then there would be a script thet reads the text until the
sixth date would be encountered, and prints each message on the frontpage.
I thought I would even use <pre class="message"></pre> markup if necessary.
Does anyone have any suggestions on how to do it? Is it wise to use one
file and append all messages to it? I have heard the fopen() and other
filefunctions are generally rather slow, although the traffic won't be very
busy on this site.
Does anyone have a better way to choose for me? I have no need to set up
any database solution for this.
Oll¡maX!
--
email : ollimantyranta"boing"sunpoint"boing"net