RE: [PHP] writing to files

From: Date: Wed, 27 Sep 2000 05:37:00 +0000
Subject: RE: [PHP] writing to files
Groups: php.general 
Request: Send a blank email to php-general+get-17658@lists.php.net to get a copy of this message
Store a date with the news.txt file and delimit the file whichever way you require eg date,"my news here"<cr/lf> ... Then parse the file on read into an array, and sort array by date. -----Original Message----- From: Generic Player [mailto:genericplayer2@home.com] Sent: September 27, 2000 11:13 AM To: php-general@lists.php.net Subject: [PHP] writing to files Hi Here is what I am doing. I wrote a script to update news.txt and copy what was in it to an aold archive.txt. Problem is I want to have the archived news displayed with the most recent article at the top. Any way to do that without storing news items in a database or seperate .txt files for each news item? Thanks in advance Generic Player

« previous php.general (#17658) next »