
December 12th, 1999, 12:32 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Hello,
I' ve got a messageboard, which is in CGI. It uses a file named toc.dat to display the messages. Here is how this information is stored:
1790|~%|0|~%|12-12-1999|~%|18:16|~%|name|~%| |~%|subject
1789|~%|0|~%|12-12-1999|~%|18:07|~%|name|~%| |~%|subject
1791|~%|1|~%|12-12-1999|~%|18:26|~%|name|~%|email|~%|subject
As you can see, each line starts with a message-identifier.
Now, I would like to use a PHP3-script, which displays the last 5 entries on the main page of my website. Is it possible to extract the subject out of this dat-file?
I have only just begun to learn php and cgi, so please be elaborate URL
Thank you very much....
Leander
|