xyoon wrote:But, would that be efficient?
Everytime, a new message posted we have to add it to the database.
I believe writing to a database will take longer time than writing to a file (please correct me if this is wrong).
Both avenues have their pros and cons.
Database - (namely mysql)
can access data superbly fast and can manipulate the data easily (eg deleting, editing, searching). slightly slower adding data as noted.
Flatfile - unfunctional though quite nippy - would need to write your own functions for deleting/editing/searching though.
personally I'd advise database for the ease of adding extra facilities (the editing/searching/deleting bits) and because they are more useful to learn.