Re: [PHP] reading txt file - certain lines

2004-07-30 Thread Rory McKinley
Dustin Krysak wrote: snip Now what I want to do is read this file, but only say read 5 songs worth, then I would place the PHP code in (another table) and display the next 5 songs and so on This just allows for a more flexible layout in the final presentation. the way I am having the text

Re: [PHP] reading txt file - certain lines

2004-07-29 Thread Miroslav Hudak (php/ml)
Everything is possible :) And in this case, it seems, that lines are delimited by br ... i'm not quite sure, whether br can be used in explode as a delimiter, if so, you have no problem and you just read all the file into variable, $lines = explode('br', $variable) and you have lines in

Re: [PHP] reading txt file - certain lines

2004-07-28 Thread John Nichel
Dustin Krysak wrote: Hi there.. .I am displaying info (on music) from a text file with the following code... ?php //open the file handler $fp02=fopen(assets/lib/php/itunes/recent.txt,r); //Read the track info $recent=fgets($fp02); //close the file. echo $recent; fclose($fp02); ? Now the

Re: Re: [PHP] reading txt file - certain lines

2004-07-28 Thread Dustin Krysak
: From: John Nichel [EMAIL PROTECTED] Date: July 28, 2004 2:05:51 PM PDT To: PHP [EMAIL PROTECTED] Subject: Re: [PHP] reading txt file - certain lines Dustin Krysak wrote: Hi there.. .I am displaying info (on music) from a text file with the following code... ?php //open the file handler $fp02=fopen