RE: [PHP] News system in one file _or_ how to read lines from a file

From: Date: Thu, 30 Nov 2000 15:05:27 +0000
Subject: RE: [PHP] News system in one file _or_ how to read lines from a file
Groups: php.general 
Request: Send a blank email to php-general+get-28089@lists.php.net to get a copy of this message
If you're using php4, why not use the included xml-parser? -----Oorspronkelijk bericht----- Van: Jesus Climent [SMTP:climent@stybba.ntc.nokia.com] Verzonden: donderdag 30 november 2000 15:36 Aan: php-general@lists.php.net Onderwerp: [PHP] News system in one file _or_ how to read lines from a file Hi all! I have a kinnda small question. I want to develope a news system. I have my frames (php includes) to create the look&feel of my whole "portal" but I would like to create something more. To the facts... I want the "index.php" in every dir to take a file from the current file, called news_list.ext and, using some functions that I have already created, do the following: The format of the file is: <item> title....|date|author text <item> .... and so on. I want a piece of code that reads the very first line after <item> and data=explodes ("|" , 1st_line), uses data[1], data[2] and data[3] to set the table structure and reads the rest of the text as the news itself. until it arrives to next item... and repeats again till the end of the file. Any help? daTa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#28089) next »